sparrowcode / AlertKit

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.

Home Page:https://sparrowcode.io/frameworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Corner radius and everything that is setup in self.commonInit() are not working.

mbalinionut opened this issue · comments

Consider adding self.commonInit() in public func present() { } this will resolve the problem.

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.