Show Banner From Anywhere Using View Modifier In SwiftUI
www.morningswiftui.comWhat if you would like to display a view on top of your content? What if you need to show a banner from multiple places? Aren’t you going to duplicate code in lot of places with also defining how you want to animate in/out the transition? Here's an example of how you could use ViewModifier which can be handy and could be applied in many more places.
Read more...