You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, both the datasource property and the delegate property are of type AnyObject?. Why not change them to be of type SJFluidSegmentedControlDatasource? and SJFluidSegmentedControlDelegate? respectively? This way errors can be detected at compile time.
The text was updated successfully, but these errors were encountered:
The dataSource and delegate properties are set to AnyObject? type because they are exposed to interface builder as @IBOutlet properties, therefore they cannot have a non-'@objc' protocol type, such as SJFluidSegmentedControlDataSource or SJFluidSegmentedControlDelegate.
Currently, both the
datasource
property and thedelegate
property are of typeAnyObject?
. Why not change them to be of typeSJFluidSegmentedControlDatasource?
andSJFluidSegmentedControlDelegate?
respectively? This way errors can be detected at compile time.The text was updated successfully, but these errors were encountered: