Skip to content

Commit 4877e91

Browse files
yodagamaheshanfreak4pc
authored andcommitted
use present instead of show
1 parent 61e9cff commit 4877e91

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

RxExample/RxExample/Examples/SimpleValidation/SimpleValidationViewController.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ class SimpleValidationViewController : ViewController {
6767
message: "This is wonderful",
6868
preferredStyle: .alert
6969
)
70-
71-
show(alert, sender: nil)
70+
let defaultAction = UIAlertAction(title: "Ok",
71+
style: .default,
72+
handler: nil)
73+
alert.addAction(defaultAction)
74+
present(alert, animated: true, completion: nil)
7275
}
7376
}

0 commit comments

Comments
 (0)