İOS Beautiful Animated Alert Box
Default Alert Box init
abox = KAlertBox(to: self.view, status: .success, title: "Title", subtitle: "Subtitle", animationPosition: .bottom, alertStyle: .action)
abox.setup()
abox.addAction()
or set action handle code
abox.addAction {
// code
}
You should change design
Select your need init
KAlertBox(to: self.view, status: .success, title: "", subtitle: "", animationPosition: .left, alertStyle: .action)
KAlertBox(to: self.view, status: .warning, title: "", subtitle: "", animationPosition: .right, buttonActionTitle: "", buttonActionColor: UIColor.red)
KAlertBox(to: self.view, status: .error, title: "", subtitle: "", animationPosition: .bottom, buttonActionTitle: "", buttonCancelTitle: "")
KAlertBox(to: self.view, status: .success, title: "", subtitle: "", animationPosition: .none, buttonActionTitle: "", buttonCancelTitle: "", buttonActionColor: UIColor.black, buttonCancelColor: UIColor.white)
Select Diffrent Animation types
.top
.bottom
.left
.right
.none