InterfaceActionConfiguring
@MainActor
public protocol InterfaceActionConfiguring<EventType, 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 interaction event types for a Destination.
Declaration
Swift
associatedtype EventType : EventTypeable -
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<EventType, DestinationType, ContentType>, eventType: EventType, destination: any Destinationable, content: ContentType?) -> InterfaceAction<EventType, DestinationType, ContentType>Parameters
interfaceActionThe
InterfaceActionobject to configure and run.eventTypeThe type of interaction event.
destinationThe Destination object associated with the event, used for configuring the
InterfaceActionobject.contentOptional content to use when performing the
InterfaceAction.Return Value
The configured interface action.
View on GitHub