The SwiftUI @Environment property wrapper allows views to access shared data and respond to changes…
Status Bar – SwiftUI
Status Bar in SwiftUI – Find useful code about how to work with Status Bar in SwiftUI.
How to hide status bar in SwiftUI
var body: some View {
.edgesIgnoringSafeArea(.all)
.statusBar(hidden: true)
}
Learn more about SwiftUI using SwiftUI Tutorials by the AppMakers
If anything will change in the future, it is OK, just use the new API calls for the functions mentioned in this post.
Leave a comment to Submit the NEW and USEFUL code related to the topic of this post.
Submit a brief and useful code only.