Alert

Tools

Imagem de capa
//Calling Fuction
self.myalert("Success", "Login Successful")

//custom function
func myalert(_ mytitle:String, _ mymessage:String)
    {
        let alert = UIAlertController(title: mytitle, message: mymessage, preferredStyle: .actionSheet)
        let ok = UIAlertAction(title: "Done", style: .default, handler: nil)
        alert.addAction(ok)
        self.present(alert,animated: true,completion: nil)
    }

Want to see something else added? Open an issue.