From dc2ada65f3e93260b1e446a937d52bca5f6174af Mon Sep 17 00:00:00 2001 From: ltsyk Date: Thu, 30 Jul 2026 08:00:50 +0800 Subject: [PATCH] docs: fix typos in project documentation Fix documentation typos: initilize->initialize (x2); Defualt->Default (x2) --- README.md | 4 ++-- index.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index efc0a3d..0ffeb60 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 }) diff --git a/index.md b/index.md index b372e83..ac15c2f 100644 --- a/index.md +++ b/index.md @@ -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) @@ -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 })