SCLAlertView-Swift
SCLAlertView-Swift copied to clipboard
Beautiful animated Alert View. Written in Swift
// Done button if appearance.showCloseButton { _ = addButton(completeText ?? "Done", target:self, selector:#selector(SCLAlertView.hideView)) }
In the following code i am not able to change the background color of the button, when i am giving the background colour as UIColour(red:122.0, green:100.0, blue: 30.0 , alpha:...
let alert = SCLAlertView(appearance: AppContext.appearanceTripCreate) let txt = alert.addTextField("Enter trip name") alert.addButton("Done") { if txt.text != nil { } else { SCLAlertView().showInfo("Please enter trip name", subTitle: "") } } alert.showEdit("Create...
When I set subtitle, but leave title to "", the subtitle is hidden behind the icon circle., which makes it impossible to read. After a quick look at the code...
``` let appearance = SCLAlertView.SCLAppearance( showCloseButton: false ) let alertView = SCLAlertView(appearance: appearance) alertView.showWarning("No button", subTitle: "Just wait for 3 seconds and I will disappear", duration: 3) ``` It cause...
I just migrated from Swift 2.3 to Swift 3, and this is the error that I encounter: > Cannot invoke value of type 'SCLAlertView.SCLAppearance.Type' with argument list '(kWindowWidth: CGFloat, showCircularIcon:...
Hey, thanks for the great library! Found a issue regarding custom buttons, I need to add multiple buttons which each has a object binded to it, but there is currently...
Selector is very objective-C and very unlike idiomatic Swift. It must be updated to closures instead.
I can't seem to get this working, every time i try and do it, it only fills up half the alert icon size. I've tried different sizes but nothing works.