Post

Replies

Boosts

Views

Activity

Reply to Return different views for fullScreenCover method
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?
Jan ’21