diff --git a/Example App/SPAlert.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate b/Example App/SPAlert.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate index 42fdfd7..73a9ea8 100644 Binary files a/Example App/SPAlert.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate and b/Example App/SPAlert.xcodeproj/project.xcworkspace/xcuserdata/ivanvorobei.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/README.md b/README.md index 06001a6..76d2402 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ SPAlertConfiguration.duration = 2 SPAlertConfiguration.cornerRadius = 12 ``` -It will apply for all alerts. Shoud set configuration before present any alerts. +It will apply for all alerts. Shoud set configuration before present any alerts. I recomend set it in app delegate. ## SwiftUI diff --git a/SPAlert.podspec b/SPAlert.podspec index 69ac168..e85b3e6 100644 --- a/SPAlert.podspec +++ b/SPAlert.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'SPAlert' - s.version = '3.2.0' + s.version = '3.2.1' s.summary = 'Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.' s.homepage = 'https://github.com/ivanvorobei/SPAlert' s.source = { :git => 'https://github.com/ivanvorobei/SPAlert.git', :tag => s.version } diff --git a/Sources/SPAlert/SPAlertView.swift b/Sources/SPAlert/SPAlertView.swift index fc844a6..25a06f4 100644 --- a/Sources/SPAlert/SPAlertView.swift +++ b/Sources/SPAlert/SPAlertView.swift @@ -91,7 +91,7 @@ open class SPAlertView: UIView { insetsLayoutMarginsFromSafeArea = false } layer.masksToBounds = true - layer.cornerRadius = SPAlertConfiguration.cornerRadius ?? 8 + layer.cornerRadius = SPAlertConfiguration.cornerRadius backgroundColor = .clear addSubview(backgroundView)