Post

Replies

Boosts

Views

Activity

Reply to Toolbar is appearing at the bottom
As a workaround, you can wrap the buttons with ToolbarItem(placement:): .toolbar { 	#if os(iOS) 	ToolbarItem(placement: .navigationBarTrailing) { 		EditButton() 	} 	#endif 	ToolbarItem(placement: .navigationBarLeading) { 		Button("Add", action: makeSandwich) 	} }
Jun ’20
Reply to Push View Controller in SwiftUI
You can implement your error view in your root view with an if statement and show/hide the error view using either an environment object or a shared model/viewmodel property. This way you can control it directly from any view and/or from the model/viewmodel itself.
Jun ’20