// Example
class ViewController: UIViewController {
@IBAction func didTapOnButton(_ sender: Any) {
Notify.showSuccsess(title: "Hello Bro\nHow are you!?") {[weak self] in
self?.view.backgroundColor = .systemPink
}
}
}
Notify.showSuccsess(title: "Message")
Notify.showError(title: "Message")
Notify.showWith(title: "Message", image: nil, type: .gray, duration: 3, haptic: .success) {
//Comletion handler
}
showSuccsess | showError |
---|---|