Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ alert.autoHideTime = 4.5 // This will hide alert box after 4.5 seconds

`hasRoundedCorners: Bool` -> Apply rounded corners to alert view. Default is `true`.

`hasShadow: Bool` -> Apply shadows around the popup. Defualt is `true`.
`hasShadow: Bool` -> Apply shadows around the popup. Default is `true`.

`circleFillColor: UIColor` -> Sets background color of header icon. (Color of circle area)

Expand Down Expand Up @@ -143,7 +143,7 @@ If you enabled text field with setting `isTextFieldHidden` property to `false`,

### Advanced action initialization:

`font`, `textColor`, `backgroundColor`, `handler` are all optional and has default parameter values. You can initilize with them or set them after initialization.
`font`, `textColor`, `backgroundColor`, `handler` are all optional and has default parameter values. You can initialize with them or set them after initialization.

```swift
let action = CDAlertViewAction(title: "Action Title", font: UIFont.yourCustomFont, textColor: UIColor.yourTextColor, backgroundColor: UIColor.yourBackgroundColor, handler: { action in })
Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ alert.autoHideTime = 4.5 // This will hide alert box after 4.5 seconds

`hasRoundedCorners: Bool` -> Apply rounded corners to alert view. Default is `true`.

`hasShadow: Bool` -> Apply shadows around the popup. Defualt is `true`.
`hasShadow: Bool` -> Apply shadows around the popup. Default is `true`.

`circleFillColor: UIColor` -> Sets background color of header icon. (Color of circle area)

Expand Down Expand Up @@ -141,7 +141,7 @@ If you enabled text field with setting `isTextFieldHidden` property to `false`,

### Advanced action initialization:

`font`, `textColor`, `backgroundColor`, `handler` are all optional and has default parameter values. You can initilize with them or set them after initialization.
`font`, `textColor`, `backgroundColor`, `handler` are all optional and has default parameter values. You can initialize with them or set them after initialization.

```swift
let action = CDAlertViewAction(title: "Action Title", font: UIFont.yourCustomFont, textColor: UIColor.yourTextColor, backgroundColor: UIColor.yourBackgroundColor, handler: { action in })
Expand Down