SCLAlertView-Swift icon indicating copy to clipboard operation
SCLAlertView-Swift copied to clipboard

Method signature changed.

Open the-freshlord opened this issue 8 years ago • 2 comments

I noticed that the method addButton changed to this:

addButton(_ title:String, backgroundColor:UIColor? = nil, textColor:UIColor? = nil, showTimeout:SCLButton.ShowTimeoutConfiguration? = nil, target:AnyObject, selector:Selector)->SCLButton

But when doing a pod install, an older version gets pulled and the method is this:

addButton(_ title:String, backgroundColor:UIColor? = nil, textColor:UIColor? = nil, showDurationStatus:Bool=false, action:@escaping ()->Void)->SCLButton 

Not sure why this happens.

the-freshlord avatar Apr 13 '17 20:04 the-freshlord

Having the same issue, any clues?

jorojas avatar Oct 12 '17 19:10 jorojas

Hi guys, I got this while compiling my code: /Users/user/Documents/GitHub/mobile-visa-mlc-ios-master/BaseApp/Views/VisaViews/VisaAlertView/VisaAlertViewController.swift:87:132: Cannot convert value of type 'Bool' to expected argument type 'SCLButton.ShowTimeoutConfiguration?'

In this method: func addActionButton(_ title: String, buttonTapped: @escaping () -> Void) { let textColor = ThemeManager.sharedManager.isUsingDefaultTheme ? ThemeManager.sharedManager.currentPrimaryColor : ThemeManager.sharedManager.currentTertiaryColor _ = addButton(title, backgroundColor: ThemeManager.sharedManager.currentSecondaryColor, textColor: textColor, showTimeout: false, action: buttonTapped) }

Could you guys help me?

jorojas avatar Oct 12 '17 20:10 jorojas