Handling deeplinks in iOS 14 with onOpenURL

Handling deeplinks using UIKit is cumbersome, requiring developers to implement logic in their App/Scene delegate which needs to know the full app structure to manipulate its navigation state. Thankfully, handling deeplinks with SwiftUI in iOS 14 is much more powerful and flexible. In this post, Donny Wals provides a complete example of using SwiftUI's new onOpenURL view modifier, showing us how views can modify their state as needed in response to a deeplink.