Examples de navigation app iOS swiftUI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
625 B

//
// ContentView.swift
// NavigationExemple
//
// Created by Arthur Dambrine on 02/04/2021.
//
import SwiftUI
struct ContentView: View {
@State private var fullScreen = false
var body: some View {
NavigationView{
Button("Toogle full screen"){
self.fullScreen.toggle()
}
.navigationBarTitle("Full Screen")
.navigationBarHidden(fullScreen)
}
.statusBar(hidden: fullScreen)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}