Я пытаюсь вывести заголовок для действия кнопки в предупреждении, как показано ниже.
let formattedString = NSMutableAttributedString()
formattedString.append(NSAttributedString(string: "Text is small" ,
attributes: [NSAttributedStringKey.font: UIFont.systemFont(ofSize: 8.0)]))
formattedString.append(NSAttributedString(string: "Text is large"))
В UIAlertcontroller действие UIButton
.addAction(action: AABlurAlertAction(title: formattedString, style: AABlurActionStyle.modern)
Но он отказался принять NSMutableAttributedString для передачи аргумента заголовка.
Выдает ошибку
Cannot convert value of type 'NSMutableAttributedString' to expected argument type 'String?'