My Navigation bar and Alert title and Bottom Alert title became white in whole project. I found answers only which are only perform on individual alerts but not as Global.

func inliseAlert(_ imageSelection:Int,_ VC:UIViewController ,_ success:@escaping ImageSelectionCompletion) {
//Change color of selection overlay to white
viewController = VC
numberOfImage = imageSelection
self.success = success
let imageSourceAlert = UIAlertController(title: "Choose Image", message: "", preferredStyle: UIAlertController.Style.actionSheet)
let camera = UIAlertAction(title: "Camera", style: .default) { [weak self](action: UIAlertAction) in
// Code to unfollow
DispatchQueue.main.async {
self?.openCamera()
}
}
let gallery = UIAlertAction(title: "Gallery", style: .default) {[weak self] (action: UIAlertAction) in
// Code to unfollow
guard let self = self else {return }
DispatchQueue.main.async {
self.openGallery()
}
}
let cancelAction = UIAlertAction(title: "Cancel", style: .destructive, handler: nil)
imageSourceAlert.addAction(camera)
imageSourceAlert.addAction(gallery)
imageSourceAlert.addAction(cancelAction)
// if let topController = UIApplication.getTopViewController() {
viewController?.present(imageSourceAlert, animated: true, completion: nil)
// }
}
