PresentableComponent

public protocol PresentableComponent : Component

A component that provides a view controller for the shopper to fill payment details.

  • The payment information.

    Declaration

    Swift

    var payment: Payment? { get set }
  • Indicates whether viewController expected to be presented modally, hence it can not handle it’s own presentation and dismissal.

    Declaration

    Swift

    var requiresModalPresentation: Bool { get }
  • Returns a view controller that presents the payment details for the shopper to fill.

    Declaration

    Swift

    var viewController: UIViewController { get }
  • stopLoading(withSuccess:completion:) Default implementation

    Stops any processing animation that the view controller is running.

    Default Implementation

    Stops any processing animation that the view controller is running.

    Declaration

    Swift

    func stopLoading(withSuccess success: Bool, completion: (() -> Void)?)

    Parameters

    success

    Boolean indicating the component should go to a success or failure state.

    completion

    Completion block to be called when animations are finished.

  • stopLoading() Extension method

    Stops any processing animation that the view controller is running.

    Declaration

    Swift

    func stopLoading()
  • stopLoading(withSuccess:) Extension method

    Stops any processing animation that the view controller is running.

    Declaration

    Swift

    func stopLoading(withSuccess success: Bool)

    Parameters

    success

    Boolean indicating the component should go to a success or failure state.