Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make datasource and delegate to be of the correct type. #7

Closed
Sweeper777 opened this issue Apr 22, 2017 · 1 comment
Closed

Make datasource and delegate to be of the correct type. #7

Sweeper777 opened this issue Apr 22, 2017 · 1 comment

Comments

@Sweeper777
Copy link

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.

@sasojadrovski
Copy link
Owner

Hi @Sweeper777,

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants