Closed mbalinionut closed 5 years ago
What you try customise? Only corner radius
?
Not only corner radius, everything that is in commonInit() .
This is my use case:
let alertView = SPAlertView(title: "Could not save.", message: "\(error!), \(error!.userInfo)", preset: SPAlertPreset.error)
alertView.cornerRadius = 40
alertView.duration = 2
alertView.dismissByTap = true
alertView.haptic = .success
alertView.present()
You can resolve this very quickly by adding commonInit()
only in present()
.
I am upload new version 1.0.4
, please, update.
Property cornerRadius
removed. Change it with code:
alertView.layer.cornerRadius = 40
Other properties work correctly. Thanks for issue.
Consider adding self.commonInit() in public func present() { } this will resolve the problem.