This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"3": { | |
"inputs": { | |
"seed": 739232483436497, | |
"steps": 20, | |
"cfg": 7, | |
"sampler_name": "euler_ancestral", | |
"scheduler": "normal", | |
"denoise": 1, | |
"model": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"words": [ | |
"a", | |
"aba", | |
"abadan", | |
"abadanlaşmak", | |
"abadanlyk", | |
"abadançylyk", | |
"abanmak", | |
"abanyşmak", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIViewController { | |
func showAlert(withTitle title: String, message: String, actionTitle: String = "OK") { | |
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) | |
let action = UIAlertAction(title: actionTitle, style: .default, handler: nil) | |
alertController.addAction(action) | |
present(alertController, animated: true, completion: nil) | |
} | |
func showHeyAlert() { | |
// Customizable actionTitle | |
showAlert(withTitle: "Hey", message: "HeyHey", actionTitle: "Hey Hey Yo") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIViewController { | |
func showAlert(withTitle title: String, message: String, actionTitle: String) { | |
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) | |
let action = UIAlertAction(title: actionTitle, style: .default, handler: nil) | |
alertController.addAction(action) | |
present(alertController, animated: true, completion: nil) | |
} | |
func showHeyAlert() { | |
showAlert(withTitle: "Hey", message: "HeyHey", actionTitle: "OK") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIViewController { | |
func showAlert(withTitle title: String, message: String, actionTitle: String) { | |
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) | |
let action = UIAlertAction(title: actionTitle, style: .default, handler: nil) | |
alertController.addAction(action) | |
present(alertController, animated: true, completion: nil) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyAlertController { | |
func showAlert(on vc: UIViewController, withTitle title: String, message: String, actionTitle: String) { | |
let alertController = UIAlertController(..) | |
let action = UIAlertAction(...) | |
alertController.addAction(action) | |
vc.present(alertController, animated: true, completion: nil) | |
} | |
func showErrorMessage(on vc: UIViewController) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController { | |
let myAlertController = MyAlertController() | |
... | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
myAlertController.showAlert(on: self, withTitle: "Hello", message: "Wazzup", actionTitle: "OK!") | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyAlertController { | |
func showAlert(on vc: UIViewController, withTitle title: String, message: String, actionTitle: String) { | |
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) | |
let action = UIAlertAction(title: actionTitle, style: .default, handler: nil) | |
alertController.addAction(action) | |
vc.present(alertController, animated: true, completion: nil) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func myAlertVC(title: String, message: String, actionTitle: String) { | |
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) | |
let action = UIAlertAction(title: actionTitle, style: .default, handler: nil) | |
alertController.addAction(action) | |
present(alertController, animated: true, completion: nil) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func myAlertVC() { | |
let alertController = UIAlertController(title: "Hello!", message: "Wazzup?", preferredStyle: .alert) | |
let action = UIAlertAction(title: "OK", style: .default, handler: nil) | |
alertController.addAction(action) | |
present(alertController, animated: true, completion: nil) | |
} |
NewerOlder