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?) -> ())?
-
Undocumented
Declaration
Swift
public init(title: String, searchTitle: String, buttonTitle: String)
-
Undocumented
Declaration
Swift
public override func viewDidLoad()
-
Undocumented
Declaration
Swift
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool
-
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