I'm working on rewriting an app to SwiftUI. Currently I'm struggling with what seems an easy one: Disabling the translucence in NavigationView.
The code I used before is:
UINavigationBar.appearance().isTranslucent = false
But isTranslucent is not in the autocomplete suggestions.
If I put it anyway, the app crashes inside the ViewRendererHost.render(interval:updateDisplayList:) :
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x1c34016a0)
Did I miss something? How can I disable the translucence of NavigationView in SwiftUI?
Thank you for your suggestions!