Skip to content

Commit 9b13b05

Browse files
committed
Added Configuration interface.
1 parent 9303ef6 commit 9b13b05

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ SPAlertConfiguration.duration = 2
141141
SPAlertConfiguration.cornerRadius = 12
142142
```
143143

144-
It will apply for all alerts. Shoud set configuration before present any alerts.
144+
It will apply for all alerts. Shoud set configuration before present any alerts. I recomend set it in app delegate.
145145

146146
## SwiftUI
147147

SPAlert.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SPAlert'
4-
s.version = '3.2.0'
4+
s.version = '3.2.1'
55
s.summary = 'Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.'
66
s.homepage = 'https://github.com/ivanvorobei/SPAlert'
77
s.source = { :git => 'https://github.com/ivanvorobei/SPAlert.git', :tag => s.version }

Sources/SPAlert/SPAlertView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ open class SPAlertView: UIView {
9191
insetsLayoutMarginsFromSafeArea = false
9292
}
9393
layer.masksToBounds = true
94-
layer.cornerRadius = SPAlertConfiguration.cornerRadius ?? 8
94+
layer.cornerRadius = SPAlertConfiguration.cornerRadius
9595
backgroundColor = .clear
9696
addSubview(backgroundView)
9797

0 commit comments

Comments
 (0)