func presentAlert()

in CustomUI/CustomUI/Controllers/MainViewController.swift [129:140]


    func presentAlert(_ message: String) {
        DispatchQueue.main.async { [weak self] in
            let alert = UIAlertController(title: nil, message: message, preferredStyle: .alert)
            let close = UIAlertAction(title: "Close", style: .cancel)
            close.setValue(self?.isDarkMode ?? false ? DarkThemeColors.actionSheetItem : LightThemeColors.actionSheetItem, forKey: "titleTextColor")
            alert.addAction(close)

            let attributedMessage = NSMutableAttributedString(string: message, attributes: [NSAttributedString.Key.foregroundColor: UIColor(red: 1, green: 1, blue: 1, alpha: 1), NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 16)])
            alert.setValue(attributedMessage, forKey: "attributedMessage")
            self?.present(alert, animated: true)
        }
    }