Изменить цвет фона цвет текста заголовка у alerController (alertController backgroundColor text button color title color edit) - Swift 5
// Цвет текста(Только у кнопок)
alertController.
view.tintColor = .white
// Цвет фона
alertController.
view.
subviews.first?.subviews.first?.subviews.first?.
backgroundColor = .darkGray
// Настройка заголовка
alertController.
setValue(NSAttributedString(string: alertController.title!, attributes: [NSAttributedString.Key.font : UIFont.systemFont(ofSize: 17, weight: UIFont.Weight.bold), NSAttributedString.Key.foregroundColor : .orange]), forKey: "attributedTitle")
Возврат к списку