Skip to content

Instantly share code, notes, and snippets.

View growvv's full-sized avatar

Growvv growvv

View GitHub Profile
@growvv
growvv / SimpleAlert.swift
Created November 22, 2020 04:31 — forked from BalajiMalliswamy/SimpleAlert.swift
Exploring UIAlertController in Swift
/**
Simple Alert
- Show alert with title and alert message and basic two actions
*/
func showSimpleAlert() {
let alert = UIAlertController(title: "Sign out?", message: "You can always access your content by signing back in", preferredStyle: UIAlertControllerStyle.alert)
alert.addAction(UIAlertAction(title: "Cancel", style: UIAlertActionStyle.default, handler: { _ in
//Cancel Action
}))