Colouring the arrow of a Popover in SwiftUI
Popovers in SwiftUI don't provide a way to change the colour of their arrow, and if you do not use a NavigationView but set a custom background colour, you will be sad that the arrow looks terrible.
Popovers in SwiftUI don't provide a way to change the colour of their arrow, and if you do not use a NavigationView but set a custom background colour, you will be sad that the arrow looks terrible.
The initialisers of Views in SwiftUI have some surprising and obscure behaviours related to state. If you've used SwiftUI at all you will likely have discovered this. In addition, the rules around how properties that are wrapped with Property Wrappers are accessed are interesting when inside the initialiser of the type. It is this latter issue that bit me.