I need to add action in new line just like: alertActionsWithNewLines
I'm trying this code:
let uncheckInAlert = UIAlertController(title: "Are you sure you want to uncheck-in?", message: "", preferredStyle: .alert)
uncheckInAlert.setTitleImage(UIImage(named: "fail_Icon"))
uncheckInAlert.addAction(UIAlertAction(title: "Yes", style: .default, handler: { (action) -> Void in
self.userUncheckIn()
}))
uncheckInAlert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
self.present(uncheckInAlert, animated: true, completion: nil)
But as result I have something like: alertActionsInOneLine. If action title is large then action automatically carried over on new line. With small action title, actions is grouped in one line. Is there any a ways to do this?