oh, Jesus.
In my ContentView I have OnboardingView and I present it as sheet.... i.e. I have two view modifiers:
struct ContentView: View {
		// some code
		// ...
		@State private var showModal = false
		@State private var fullScreenType: FullScreenType? = Optional.none
		var body: some View {
				VStack {
				// some stuff
				// ...
						if card.flipped {
										self.fullScreenType = .topTimes
										self.showModal.toggle()
						} else {
										self.fullScreenType = .seasonDetails
										self.showModal.toggle()
								}
						}
				}
				.fullScreenCover(item: $fullScreenType, content: { fullScreenType in
						makeFullScreenContent(fullScreenType)
				})
			 .sheet(isPresented: $showOnboarding) {
					 OnboardingView()
			 }
		}
}
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?
Post
Replies
Boosts
Views
Activity
Hi. Are you using an emulator? because I observe the same behavior that you do on my emulator. But if I use the real device, then everything is fine.
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.