UIAlertAction
@_spi(FW) extension UIAlertAction
系统弹出动作title仅支持NSString,如果需要支持NSAttributedString等,请使用AlertController
-
自定义样式,默认为样式单例
Declaration
Swift
public var fw_alertAppearance: AlertAppearance! { get set }
-
是否是推荐动作
Declaration
Swift
public var fw_isPreferred: Bool { get set }
-
指定标题颜色
Declaration
Swift
public var fw_titleColor: UIColor? { get set }
-
快速创建弹出动作,title仅支持NSString
Declaration
Swift
public static func fw_action(object: AttributedStringParameter?, style: UIAlertAction.Style, handler: ((UIAlertAction) -> Void)?) -> UIAlertAction
-
快速创建弹出动作,title仅支持NSString,支持appearance
Declaration
Swift
public static func fw_action(object: AttributedStringParameter?, style: UIAlertAction.Style, appearance: AlertAppearance?, handler: ((UIAlertAction) -> Void)?) -> UIAlertAction