after updating to xcode 8 beta 6, I\'m getting the error
Cannot assign value of type \'() -> Void\' to type \'(() -> Void)!\'
o
It seems your issue is related to this: SE-0103
Try chaging the method header of your addButton(_:action:)
to:
public func addButton(_ title:String, action:@escaping ()->Void)->SCLButton {
The diagnostic messages from new betas are so confusing and inadequate as usual, but making your property simply non-Optional var action:()->Void = {}
will give you a little more useful info.