The solution was lifting out navigationTitle and toolbar. I got lucky guessing.. can't imagine it's supposed to work like this.
someView
.sheet(isPresented: $isShowingViewer, content: {
imageViewer
.navigationTitle("Image viewer")
.toolbar(content: {
ToolbarItem(placement: .confirmationAction, content: {
imageViewerToolbar
})
})
})
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: