File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## Next
22
33## 3.2.0
4- - Added support to display a checkmark with ` isChecked `
4+ - Added support to display a checkmark with ` isChecked ` .
55
66## 3.1.0
77
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ extension UIAlertAction {
2525 /// may be used with [UIAlertAction.Style.cancel](https://developer.apple.com/documentation/uikit/uialertaction/style/cancel).
2626 /// - parameter image: An image to display on the left side of the button.
2727 /// Use this to visually convey the action's purpose.
28- /// - parameter isChecked: A boolean that will be used to determine if a check mark should be displayed on the right side of the title
28+ /// - parameter isChecked: A boolean that will be used to determine if a
29+ /// check mark should be displayed on the right side of the title.
2930 /// - parameter style: Additional styling information to apply to the button.
3031 /// Use the style information to convey the type of action that is performed by the button.
3132 /// For a list of possible values, see the constants in
@@ -50,5 +51,6 @@ extension UIAlertAction {
5051 /// The image of the action's button.
5152 public var image : UIImage ? { value ( forKey: imageKey) as? UIImage }
5253
54+ /// A Bool indicating if the action is checked or not.
5355 public var isChecked : Bool { value ( forKey: isCheckedKey) as? Bool ?? false }
5456}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ settings.image // returns an optional UIImage
6868
6969#### Adding a checkmark
7070
71- You can also show a check mark on actions via ` isChecked `
71+ You can also show a check mark on actions via ` isChecked ` .
7272
7373``` swift
7474let settings = UIAlertAction (
You can’t perform that action at this time.
0 commit comments