İOS Beautiful animated replaceable message box
puBox = PopUpMessageBox(to: self.view, icon: UIImage(named:"ms.png")!, title: "Send Message")
puBox.setup()
puBox.addSendHandle(target: self, selector: #selector(sendMsg))
puBox.addCancelHandle(target: self, selector: #selector(cancelMsg))
TextView text
func sendMsg() {
// Send Code
print(puBox.msgText!)
}
Cancel handle call remove function
func cancelMsg() {
// Cancel Code
puBox.remove()
}
Change Icon,title vs.
PopUpMessageBox(to: self.view, icon: UIImage(named "ms.png")!, title: "Send", sendTitle: "Go", cancelTitle: "Cancel", sendColor: UIColor.black, cancelColor: UIColor.gray)