Posts

Post not yet marked as solved
1 Replies
406 Views
Hey, I have been planning my submission for some time now, and my idea requires the reviewer at Apple to print out a couple of images. (The images will zipped with my submission) Will this be okay?
Posted Last updated
.
Post marked as solved
1 Replies
3.8k Views
Hello, how do I convert an EnvironmentObject to a Binding? In my GameView have have: GameView.swift struct GameView: View { @EnvironmentObject private var game: ObserveableGame var body: some View { 	... 	.sheet(isPresented: $addingPoints) { 	 AddPointsView(game: $game) } } } and my AddPointsView: struct AddPointsView: View { @Binding var game: ObserveableGame var body: some View { ... } } But in the GameView.swift I get an error on the (translated) line 6: Cannot convert value of type 'EnvironmentObject<ObserveableGame>.Wrapper' to expected argument type 'Binding<ObserveableGame>' How do I make a binding to an EnviromentObject?
Posted Last updated
.