06:Swift-NavigationButtonPage 导航按钮

 

 

正文

 

import SwiftUI

struct NavigationButtonPage: View {
    var body: some View {
        NavigationLink(destination: NavigationButtonPage()) {
            Text("NavigationButton")
                .bold()
                .font(.system(size: 20, weight: .light, design: .rounded))
                .foregroundColor(.red)
        }.navigationTitle("NavigationButton")
    }
}

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

 

posted on 2023-03-20 20:58  风zk  阅读(25)  评论(0编辑  收藏  举报

导航