Custom notification view for swift
Notify
// Пример
class ViewController: UIViewController {
@IBAction func didTapOnButton(_ sender: Any) {
Notify.showSuccsess(title: "Hello Bro\nHow are you!?") {
self.view.backgroundColor = .systemPink
}
}
}
Notify.showSuccsess(title: "Сообщение")
Notify.showError(title: "Сообщение")
Notify.showWith(title: "Сообщение", image: nil, type: .gray, duration: 3, haptic: .success) {
//Ваш код
}
showSuccsess | showError |
---|---|