PresentationResult

public enum PresentationResult<PresenterType>

Indicates the result of a presentation request.

  • Return this if routing is not supported for the given action. Any action could be passed, and most UIs will only support routing a subset of them.

    Declaration

    Swift

    case unsupported
  • Return this if the user performed something that would prevent the action continuing, such as an active edited document with unsaved changes

    Declaration

    Swift

    case userCancelled
  • Return this to indicate the app cannot create the presenter right now, perhaps Log In is required or similar

    Declaration

    Swift

    case appCancelled
  • Return this to indicate the app has already prepared the UI for this, but the action should not be performed. e.g. it represents the existing state of the UI already and performing the action again would do nothing

    Declaration

    Swift

    case appPerformed
  • Return this when the app has prepared the UI for presenting the action and include the presenter the action should use.

    Declaration

    Swift

    case appReady(presenter: PresenterType)