Skip to content

Commit

Permalink
Added Configuration interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Jun 19, 2021
1 parent 9303ef6 commit 9b13b05
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion SPAlert.podspec
Original file line number Diff line number Diff line change
@@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion Sources/SPAlert/SPAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9b13b05

Please sign in to comment.