首页 > 其他分享 >22:SwiftUI-ZStack

22:SwiftUI-ZStack

时间:2023-03-28 16:33:19浏览次数:39  
标签:22 Text some ZStackPage SwiftUI ZStack View

 

 

正文

 

//
//  ZStackPage.swift
//  SwiftUIDeom
//
//  Created by zhoukang03 on 2023/3/28.
//

import SwiftUI

struct ZStackPage : View {
    var body: some View {
        ZStack {
            Text("made in China.")
            Divider() // Just add a line.
            Text("the People's Republic Of China.")
        }.navigationBarTitle(Text("ZStack"))
    }
}

#if DEBUG
struct ZStackPage_Previews : PreviewProvider {
    static var previews: some View {
        ZStackPage()
    }
}
#endif

 

 

 

示例图

 

标签:22,Text,some,ZStackPage,SwiftUI,ZStack,View
From: https://www.cnblogs.com/zyzmlc/p/17265744.html

相关文章