Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Toolbar… bug?
Such a weird bug. Still happening two years later with iOS 16.4. struct ContentView: View { var body: some View { NavigationView { List { NavigationLink("Go to detail view") { Text("Detail view") .toolbar { ToolbarItem(placement: .bottomBar) { Button(action: { print("tap") }) { Image(systemName: "square.and.arrow.up") } } } } } } // Without this, toolbar is either empty or doesn't appear in detail view .navigationViewStyle(.stack) } }
May ’23