Implement iOS native ActionSheet

How to implement the iOS native ActionSheet (with a 'cancel' button)

  •         
    
    //Create AlertController
    var alertController = UIAlertController.alertControllerWithTitleMessagePreferredStyle(null, null, UIAlertControllerStyle.UIAlertControllerStyleActionSheet);
    
    //Declare actions that you want users to respond
    var editAction = UIAlertAction.actionWithTitleStyleHandler(_("Edit"), UIAlertActionStyle.UIAlertActionStyleDefault, (arg: UIAlertAction) => {
      // implement your callback here
    });
    let deleteAction = UIAlertAction.actionWithTitleStyleHandler(_("Delete"), UIAlertActionStyle.UIAlertActionStyleDestructive, (arg: UIAlertAction) => {
      // implement your callback here
    });
    var cancelAction = UIAlertAction.actionWithTitleStyleHandler(_("Cancel"), UIAlertActionStyle.UIAlertActionStyleCancel, (arg: UIAlertAction) => {
      // implement your callback here
    });
    
    //Add actions to AlertController
    alertController.addAction(editAction);
    alertController.addAction(deleteAction);
    alertController.addAction(cancelAction);
    
    //Show the AlertController
    var currentPage = topmost().currentPage;
    var  viewController: UIViewController;
    if (currentPage.modal) {
      viewController = currentPage.modal.ios;
    } else {
      viewController = currentPage.ios;
    }
    viewController.presentModalViewControllerAnimated(alertController, true);