Posts

Post not yet marked as solved
11 Replies
this is my info.plist for one of my app on SwiftUI: <key>UILaunchScreen</key> <dict> <key>UIColorName</key> <string>onboarding_color</string> <key>UIImageName</key> <string>onboarding_logo</string> <key>UIImageRespectsSafeAreaInsets</key> <false/> </dict> and my onboarding_logo is svg file.
Post not yet marked as solved
2 Replies
oh, Jesus. In my ContentView I have OnboardingView and I present it as sheet.... i.e. I have two view modifiers: struct ContentView: View { &#9;&#9;// some code &#9;&#9;// ... &#9;&#9;@State private var showModal = false &#9;&#9;@State private var fullScreenType: FullScreenType? = Optional.none &#9;&#9;var body: some View { &#9;&#9;&#9;&#9;VStack { &#9;&#9;&#9;&#9;// some stuff &#9;&#9;&#9;&#9;// ... &#9;&#9;&#9;&#9;&#9;&#9;if card.flipped { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;self.fullScreenType = .topTimes &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;self.showModal.toggle() &#9;&#9;&#9;&#9;&#9;&#9;} else { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;self.fullScreenType = .seasonDetails &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;self.showModal.toggle() &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;} &#9;&#9;&#9;&#9;.fullScreenCover(item: $fullScreenType, content: { fullScreenType in &#9;&#9;&#9;&#9;&#9;&#9;makeFullScreenContent(fullScreenType) &#9;&#9;&#9;&#9;}) &#9;&#9;&#9; .sheet(isPresented: $showOnboarding) { &#9;&#9;&#9;&#9;&#9; OnboardingView() &#9;&#9;&#9; } &#9;&#9;} } If I comment sheet modifier I will enter into custom full-screen views... So it seems, we can't use fullScreenCover and sheet. Am I right?