If you don't need presenting the alert as popover, you can simply use UIAlertController.Style.alert as preferred style, when initializing AlertViewController.
let shareMenu = UIAlertController(title: nil, message: "Share using", preferredStyle: .alert)