首页 > 其他分享 >21:SwiftUI-VStack

21:SwiftUI-VStack

时间:2023-03-28 16:35:20浏览次数:40  
标签:21 VStackPage some VStack SwiftUI Text View

 

 

正文

 

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

import SwiftUI

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

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

 

 

 

示例图

 

标签:21,VStackPage,some,VStack,SwiftUI,Text,View
From: https://www.cnblogs.com/zyzmlc/p/17265736.html

相关文章