Skip to content

Commit 979a716

Browse files
authored
Merge pull request #41 from SkiingIsFun123/patch-1
Update README.md
2 parents 8cd9cdc + df36c10 commit 979a716

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ pod 'SPAlert'
5555

5656
### Manually
5757

58-
If you prefer not to use any of dependency managers, you can integrate manually. Put `Sources/SPAlert` folder in your Xcode project. Make sure to enable `Copy items if needed` and `Create groups`.
58+
If you prefer not to use any of the dependency managers, you can integrate manually. Put `Sources/SPAlert` folder in your Xcode project. Make sure to enable `Copy items if needed` and `Create groups`.
5959

6060
## Quick Start
6161

62-
For best experience, I recommend presenting alerts by calling the class functions `SPAlert`. These functions are updated regularly and show the alerts as Apple way:
62+
For the best experience, I recommend presenting alerts by calling the class functions `SPAlert`. These functions are updated regularly and show the alerts as Apple way:
6363

6464
```swift
6565
SPAlert.present(title: "Added to Library", preset: .done)
@@ -81,21 +81,21 @@ SPAlert.present(message: "Something going wrong", haptic: .error)
8181

8282
### Duration
8383

84-
For change duration of present time, create alert view and call `present` method with custom duration:
84+
To change the duration of present time, create an alert view and call `present` method with custom duration:
8585

8686
```swift
8787
let alertView = SPAlertView(title: "Complete", preset: .done)
8888
alertView.duration = 4
8989
alertView.present()
9090
```
9191

92-
If you don't want to dimiss alert in time, disable `dismissInTime`. After it `duration` property will be ignored.
92+
If you don't want to dismiss alert in time, disable `dismissInTime`. After it, `duration` property will be ignored.
9393

9494
```swift
9595
alertView.dismissInTime = false
9696
```
9797

98-
In this case you shoud dismiss alert manually.
98+
In this case, you should dismiss the alert manually.
9999

100100
### Dismiss
101101

@@ -105,7 +105,7 @@ If you tap the alert, it will disappear. This can be disabled:
105105
alertView.dismissByTap = false
106106
```
107107

108-
Also you can manually dismiss all alerts, simple call this:
108+
Also, you can manually dismiss all alerts, simply call this:
109109

110110
```swift
111111
SPAlert.dismiss()
@@ -123,24 +123,24 @@ alertView.layout.spaceBetweenIconAndTitle = 8
123123

124124
### Haptic
125125

126-
For manage haptic, you shoud pass it in present method:
126+
To manage haptic, you should pass it in present method:
127127

128128
```swift
129129
alertView.present(duration: 1.5, haptic: .success, completion: nil)
130130
```
131131

132-
You can remove duration and completion, its have default values.
132+
You can remove duration and completion, because they have default values.
133133

134134
### Spinner
135135

136-
I added preset `.spinner`, for use it simple call this:
136+
I added the preset `.spinner`, to use it simply call this:
137137

138138
```swift
139139
let alertView = SPAlertView(title: "Please, wait", preset: .spinner)
140140
alertView.present()
141141
```
142142

143-
By default for this preset `dismissInTime` disabled and need manually dismiss alert. You can do it only for one view or dimiss all alerts:
143+
By default this preset `dismissInTime` is disabled and the alert needs to be manually dismissed. You can do it only for one view or dismiss all alerts:
144144

145145
```swift
146146
// For one alert
@@ -170,7 +170,7 @@ SPAlertView.appearance().duration = 2
170170
SPAlertView.appearance().cornerRadius = 12
171171
```
172172

173-
It will apply for all alerts. I recomend set it in app delegate. But you can change it in runtime.
173+
It will apply to all alerts. I recommend setting it in the app delegate, but you can change it in runtime.
174174

175175
## SwiftUI
176176

0 commit comments

Comments
 (0)