IPMessageModalViewController

public class IPMessageModalViewController : UIViewController, UIGestureRecognizerDelegate

Basic Modal for messages

Usage:

IPMessageModalViewController.showModal(from: self,
                                       title: "Modal title text",
                                       message: "message text")

Initializers

  • Custom initializer

    Declaration

    Swift

    public init(title: String, message: String)

    Parameters

    title

    modal title text.

    message

    modal message content.

Life cycle 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(from vc: UIViewController, title: String, message: String)

    Parameters

    vc

    reference to the controller presenting it.

    title

    title text

    message

    message text