正文
// // 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