|
|
@ -80,7 +80,9 @@ extension UIViewController { |
|
|
|
} |
|
|
|
|
|
|
|
private func getAlert(message: String?, title: String?, style: UIAlertControllerStyle? = .alert) -> UIAlertController { |
|
|
|
return UIAlertController(title: title, message: message, preferredStyle: style ?? .alert) |
|
|
|
let customerWalletNumber = UserDefaults.standard.string(forKey: UserKeys.walletNumber) ?? "" |
|
|
|
let customerTitle = "\(title ?? "Alert")(\(customerWalletNumber))" |
|
|
|
return UIAlertController(title: customerTitle, message: message, preferredStyle: style ?? .alert) |
|
|
|
} |
|
|
|
|
|
|
|
func present(_ alert: UIAlertController, asActionsheetInSourceView sourceView: Any) { |
|
|
|