diff --git a/Readme.md b/Readme.md index cb99562..7a045cc 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,6 @@ # SPAlert -**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. +**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.
@@ -8,7 +8,7 @@
@@ -34,9 +34,9 @@ And other
-Dark Mode no need additional configuration. As soon as the user change the interface to dark, all alerts will appear dark.
+Dark Mode needs no additional configuration. As soon as the user changes their interface to dark, all alerts will follow suit.
-For check state of user appearance I am use `traitCollection`:
+This is achieved by checking the `userInterfaceStyle` property on `traitCollection`.:
```swift
if self.traitCollection.userInterfaceStyle == .dark {
@@ -144,22 +144,22 @@ if self.traitCollection.userInterfaceStyle == .dark {
}
```
-It available since iOS 12, for early using always Light Mode.
+It is available since iOS 12, for earlier iOS versions the alerts will always be shown in Light Mode.
### Layout
-Here you can change the sizes and spaces:
+To change the size and spacing of the alerts:
```swift
alertView.layout.topSpace = 18
alertView.layout.iconHeight = 25
```
-For more properties see class.
+For more properties see the class.
### Dismiss by Tap
-If you click on the alert, it will disappear ahead of time. This can be disabled:
+If you tap the alert, it will disappear ahead of time. This can be disabled:
```swift
alertView.dismissByTap = false
@@ -167,17 +167,17 @@ alertView.dismissByTap = false
### Haptic
-If you use presets, the vibro-response will be start automatically. For customize this, you need set property `haptic`:
+If you use presets, the vibro-response will be started automatically. To customize this, you need set the `haptic` property:
```swift
alertView.haptic = .success
```
-For disable haptic, set it to `.none`.
+To disable haptics, set it to `.none`.
### Corner Radius
-I use a corner radius like an Apple. If you need to change it, see the property `cornerRadius`:
+You can change the corner radius by setting the `cornerRadius` property:
```swift
alertView.layer.cornerRadius = 40
@@ -185,10 +185,9 @@ alertView.layer.cornerRadius = 40
## Сooperation
-The development of this project is completely free. If you can make a contribution, it will help development. Here list of task what need do:
+This project is free to use, but developing it takes time. Contributing to this project is a huge help. Here is list of tasks that need to be done:
-- Fix mistakes in this Readme and docs. My English so bad. Good create pull request.
-- Add docs in source files. Description of public methods and parametrs.
+- Add documentation in the source files (description of public methods and parameters).
- Help me translate my app [Debts - Spending tracker](https://itunes.apple.com/app/id1446635818) for other languages.
## License