Performing Actions
-
A namespace for various UserActions types.
See moreDeclaration
Swift
public enum UserActions
-
A type for objects that can present and dismiss view controllers.
The API this protocol requires is exactly the API that UIKit uses to present and dismiss view controllers. This allows
UIViewController
to trivially conform to it, but doesn’t directly tie the action runner to UIKit.Each action runner may have a presenter. Action implementations can use methods on the action context to present and dismiss view controllers. Doing so will use the presenter of the action runner that performed the action. The action runner also uses the presenter to show alerts when actions fail.
See moreDeclaration
Swift
public protocol UserActionPresenter : AnyObject
-
Methods for hooking into the lifecycle of actions performed by an action runner.
See moreDeclaration
Swift
public protocol UserActionRunnerDelegate : AnyObject
-
A class of errors that user actions can throw.
See moreDeclaration
Swift
public enum UserActionError : LocalizedError