IPPaymentLimitModalViewController

public class IPPaymentLimitModalViewController : UIViewController, UIGestureRecognizerDelegate

Basic Modal for messages

### Usage: ###

IPMessageModalViewController.showModal(from: self,
                                       title: "Modal title text",
                                       message: "message text")
  • Closure to handle the submit action

    Declaration

    Swift

    public var handleSubmit: ((Bool, String?) -> ())?

Private variables

Lifecycle methods

  • Undocumented

    Declaration

    Swift

    public override func viewDidLoad()

Private methods

  • Undocumented

    Declaration

    Swift

    public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool

Class

  • Static method to present the current controller modally and with transparent background

    Declaration

    Swift

    public static func showModal(title: String = "Deseja colocar limite de pagamento?", searchTitle: String = "Valor para Limite Máximo:", buttonTitle: String = "ok", from vc: UIViewController, handleSubmit: ((Bool, String?) -> ())?)

    Parameters

    vc

    reference to the controller presenting it.

    handleSubmit

    closure that will pass the user inputs