I have a question regarding loading XIB file to the action sheet inside UITabBar Controller.
I would like to show signIn method with Google, Facebook, and email inside an action sheet.
Trying to use this code but the style of the button and text not showing properly. Do you guys have any example of showing xib file or any custom view to the action sheet in TabController?
let myView = Bundle.main.loadNibNamed("SignInView", owner: nil)![0] as! UIView
@IBAction func showSignIn() {
let actionSheet = UIAlertController(title: "\n\n\n\n\n\n", message: nil, preferredStyle: .actionSheet)
actionSheet.view.addSubview(myView)
present(actionSheet, animated: true, completion: nil)
}
Thank you!