Corner radius and everything that is setup in self.commonInit() are not working.
mbalinionut opened this issue · comments
mbalinionut commented
Consider adding self.commonInit() in public func present() { } this will resolve the problem.
Ivan Vorobei commented
What you try customise? Only corner radius
?
mbalinionut commented
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()
mbalinionut commented
You can resolve this very quickly by adding commonInit()
only in present()
.
Ivan Vorobei commented
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.