Skip to content

added default parameters#1

Open
adonishi wants to merge 1 commit intotuanphung:masterfrom
adonishi:master
Open

added default parameters#1
adonishi wants to merge 1 commit intotuanphung:masterfrom
adonishi:master

Conversation

@adonishi
Copy link

adding default parameters for titles: and message: are useful for title/message-only alert.
and default with actionTitles: [String]? = ["OK"] useful for OK button only alert.

then message-only alert will be this simple!

UIAlertController.present(message: "message") { (action) -> () in
  // do something
}     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant