InterfaceActionConfiguring
@MainActor
public protocol InterfaceActionConfiguring<UserInteractionType, DestinationType, ContentType>
This protocol represents an assistant which configures an InterfaceAction
object that should present a Destination. This is typically used in conjunction with a Destination such as ControllerDestination
or ViewDestination
.
-
An enum which defines user interaction types for a Destination.
Declaration
Swift
associatedtype UserInteractionType : UserInteractionTypeable
-
An enum which defines all routable Destinations in the app.
Declaration
Swift
associatedtype DestinationType : RoutableDestinations
-
An enum which defines the types of content that are able to be sent through Destinations.
Declaration
Swift
associatedtype ContentType : ContentTypeable
-
Configures and returns an interface action.
Declaration
Swift
@MainActor func configure(interfaceAction: InterfaceAction<UserInteractionType, DestinationType, ContentType>, interactionType: UserInteractionType, destination: any Destinationable, content: ContentType?) -> InterfaceAction<UserInteractionType, DestinationType, ContentType>
Parameters
interfaceAction
The
InterfaceAction
object to configure and run.interactionType
The type of user interaction.
destination
The Destination object associated with the user interaction, used for configuring the
InterfaceAction
object.content
Optional content to use when performing the
InterfaceAction
.Return Value
The configured interface action.