Skip to content

API Restructuring and New Presentation Methods

Latest
Compare
Choose a tag to compare
@rayhannabi rayhannabi released this 17 Jan 07:10
bd47159

WARNING!
This update might break your existing implementation

  • present(on:completion:) has been changed.

Previously

present(on viewController: UIViewController? = nil, completion: (() -> Void)? = nil)

Now

present(on viewController: UIViewController, completion: (() -> Void)? = nil)

With this new approach, use this method to present modally on a view controller.

  • present(_:) added.

present(_ completion: (() -> Void)? = nil)

This method presents the alert on window.

  • dismiss(_:) added.

dismiss(_ completion: (() -> Void)? = nil)

This method dismisses the alert.

  • setAttributedTextForMessage(_:) has been renamed to setAttributedMessageText(_:)