I'm trying to make an app where you can click to book a reservation. When you click on the button of the reservation you want, an UIAlert will show up and ask if you want to confirm the action. If so, then another UIAlert will show up and confirm your reservation.
I'm having difficulties to understand how to make this series os UIAlerts. Here's the code.
@IBAction func garageinn(_ sender: Any) {
var refreshAlert = UIAlertView()
refreshAlert.title = "Book a vacancy?"
refreshAlert.message = "A vacancy will be reserved at Garage Inn."
refreshAlert.addButton(withTitle: "Cancel")
refreshAlert.addButton(withTitle: "Ok")
refreshAlert.show()
}