You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# SPAlert
2
2
3
-
**Popup from Apple Music & Feedback in AppStore**. Contains `Done`, `Heart`, `Error` and other presets. Support Dark Mode. I clone Apple's alerts as much as possible. You can find this alerts in AppStore after feedback and after added song to library in Apple Music.
3
+
**Popup from Apple Music & Feedback in AppStore**. Contains `Done`, `Heart`, `Error` and other presets. Supports Dark Mode. I tried to recreate Apple's alerts as much as possible. You can find these alerts in the AppStore after feedback and after you add a song to your library in Apple Music.
If you like the project, do not forget to `put star ★` and follow me on GitHub. To help project, see [Сooperation](#сooperation) section.
37
+
If you like the project, please do not forget to `star ★`this repository and follow me on GitHub. To help out with the project, see the[Сooperation](#сooperation) section.
38
38
39
-
Check example usage in app _Debts - Spending tracker_ for [iOS](https://itunes.apple.com/app/id1446635818) and [macOS](https://apps.apple.com/app/id1496914334). You can buy source code this apps in my store for iOS developers:
39
+
For an example of this plugin in use, check this app:_Debts - Spending tracker_ for [iOS](https://itunes.apple.com/app/id1446635818) and [macOS](https://apps.apple.com/app/id1496914334). You can buy source code this apps in my store for iOS developers:
@@ -98,31 +98,31 @@ If you prefer not to use any of dependency managers, you can integrate `SPAlert`
98
98
99
99
## Quick Start
100
100
101
-
For best experience, I recommend call alerts by `SPAlert`. These functions are updated regularly and show as Apple way. I focus on presets:
101
+
For best experience, I recommend presenting the alerts by calling the class functions on `SPAlert`. These functions are updated regularly and show the alerts "the Apple way". I focus on presets:
102
102
103
103
```swift
104
104
SPAlert.present(title: "Added to Library", preset: .done)
105
105
```
106
106
107
-
If you want use custom image, use func:
107
+
For using a custom image:
108
108
109
109
```swift
110
110
SPAlert.present(title: "Love", message: "We'll recommend more like this in For You", image: UIImage(named: "Heart")!)
111
111
```
112
112
113
-
For show simple text message, use:
113
+
For showing a simple text message:
114
114
115
115
```swift
116
-
SPAlert.present(message: "Empty UITextField")
116
+
SPAlert.present(message: "Text!")
117
117
```
118
118
119
119
## Usage
120
120
121
-
Sometimes it may require deep customization. In this section, I will show you what you can do.
121
+
If you require deep customization, this section will show you what you can do.
122
122
123
123
### Duration
124
124
125
-
To change the time that the `SPAlert`will be shown, use property`duration`:
125
+
If you want the `SPAlert`to be shwon longer, use the`duration` property:
126
126
127
127
```swift
128
128
let alertView =SPAlertView(title: "Added to Library", message: nil, preset: SPAlertPreset.done)
0 commit comments