Skip to content

Commit 68ac921

Browse files
authored
Finetunin' (#17)
1 parent 4843b30 commit 68ac921

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

ImageAlertAction/Classes/UIAlertAction+Image.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
7474
let settings = UIAlertAction(

0 commit comments

Comments
 (0)