Skip to content

Commit 592aa00

Browse files
committed
Update README.md
1 parent e4c652c commit 592aa00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,16 @@ alertView.layer.cornerRadius = 40
130130

131131
### Dark Mode
132132

133-
<img align="left" src="https://github.com/ivanvorobei/SPAlert/blob/master/Resources/Dark-Mode-Preview.jpg" width="250">
133+
<img align="left" src="https://github.com/ivanvorobei/SPAlert/blob/master/Resources/Dark-Mode-Preview.jpg" width="220">
134134

135135
The default mode is `Dark Mode`. No additional configuration is required. As soon as the user change the interface to dark, all alerts will appear dark.
136136

137137
For check state of user appearance I am use `traitCollection`:
138138

139139
```swift
140-
if self.traitCollection.userInterfaceStyle == .dark { return true }
140+
if self.traitCollection.userInterfaceStyle == .dark {
141+
return true
142+
}
141143
```
142144

143145
It available sice iOS 12, for early using always Light Mode.

0 commit comments

Comments
 (0)