Hosting Controller When Using iOS 14 @main

前端 未结 3 1984
醉酒成梦
醉酒成梦 2020-12-10 21:22

I’m experimenting with a “pure” SwiftUI app. It doesn’t have a SceneDelegate so I’m unsure of where to put Hosting Controller stuff that I need for when it’ll b

3条回答
  •  醉梦人生
    2020-12-10 22:04

    It will depend on what you are looking to change, but you can do the following modifiers on ContentView .statusBar(hidden: true). This could also be placed in parts of the app where it might make sense to hide in a specific circumstance.

    This article has an great list of all the new modifiers available. https://medium.com/better-programming/swiftui-views-and-controls-the-swift-2-documentation-youve-been-waiting-for-dfa32cba24f3#6299

提交回复
热议问题