Skip to content

Commit f10b6fe

Browse files
fix mistakes in alert docs
1 parent 6156d48 commit f10b6fe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Sources/ComponentsKit/Components/Alert/Models/AlertVM.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,45 @@ public struct AlertVM: ComponentVM {
88
/// The message of the alert.
99
public var message: String?
1010

11-
/// The modal that defines the appearance properties for a primary button in the alert.
11+
/// The model that defines the appearance properties for a primary button in the alert.
1212
///
1313
/// If it is `nil`, the primary button will not be displayed.
1414
public var primaryButton: AlertButtonVM?
1515

16-
/// The modal that defines the appearance properties for a secondary button in the alert.
16+
/// The model that defines the appearance properties for a secondary button in the alert.
1717
///
1818
/// If it is `nil`, the secondary button will not be displayed.
1919
public var secondaryButton: AlertButtonVM?
2020

21-
/// The background color of the modal.
21+
/// The background color of the alert.
2222
public var backgroundColor: UniversalColor?
2323

2424
/// The border thickness of the alert.
2525
///
2626
/// Defaults to `.small`.
2727
public var borderWidth: BorderWidth = .small
2828

29-
/// A Boolean value indicating whether the modal should close when tapping on the overlay.
29+
/// A Boolean value indicating whether the alert should close when tapping on the overlay.
3030
///
3131
/// Defaults to `false`.
3232
public var closesOnOverlayTap: Bool = false
3333

34-
/// The padding applied to the modal's content area.
34+
/// The padding applied to the alert's content area.
3535
///
3636
/// Defaults to a padding value of `16` for all sides.
3737
public var contentPaddings: Paddings = .init(padding: 16)
3838

39-
/// The corner radius of the modal.
39+
/// The corner radius of the alert.
4040
///
4141
/// Defaults to `.medium`.
4242
public var cornerRadius: ContainerRadius = .medium
4343

44-
/// The style of the overlay displayed behind the modal.
44+
/// The style of the overlay displayed behind the alert.
4545
///
4646
/// Defaults to `.dimmed`.
4747
public var overlayStyle: ModalOverlayStyle = .dimmed
4848

49-
/// The transition duration of the modal's appearance and dismissal animations.
49+
/// The transition duration of the alert's appearance and dismissal animations.
5050
///
5151
/// Defaults to `.fast`.
5252
public var transition: ModalTransition = .fast

0 commit comments

Comments
 (0)