UIAlertController inside alert shows error iOS swift
Solution: If you had multiple UIAlertController then it will shows error.Then follow the below step. Add extra UIKit that will be for additional alert. let alertReplace = UIAlertController ( title : AppTitle , message : messageToshow , preferredStyle : . alert ) let okReplaceAction = UIKit. UIAlertAction ( title : "YES" , style : UIKit. UIAlertAction . Style . dest ructive ) { UIAlertAction in // add the action here } let cancelReplaceAction = UIKit...