External Action View Modifier
This plugin is used to handle EXTERNAL states, allowing you to asynchronously tell Player when, and what to transition with once you have finished processing the external state request.
CocoaPods
Add the subspec to your Podfile
Swift Usage
For an example flow with an external state such as:
The plugin can be declared to handle this external state by showing some user interface, and letting the user trigger the transition to the next state:
ExternalStateViewModifier
ExternalStateSheetModifier
is a provided modifier to present the external content with the .sheet
SwiftUI ViewModifier, however, you can easily define your own.
Adhere to the ExternalStateViewModifier
protocol: