Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

make delegate methods optional #22

Closed
tereks opened this issue Sep 12, 2017 · 4 comments
Closed

make delegate methods optional #22

tereks opened this issue Sep 12, 2017 · 4 comments

Comments

@tereks
Copy link

tereks commented Sep 12, 2017

Hi, can I suggest to make all delegate's methods optional so if I need only one method I don't need to add another empty method

@chriscombs chriscombs self-assigned this Sep 12, 2017
@chriscombs
Copy link
Contributor

Good idea, we'll look into it. You're also welcome to make a pull request.

@daehn daehn closed this as completed Sep 12, 2017
@daehn daehn reopened this Sep 12, 2017
@daehn
Copy link

daehn commented Sep 12, 2017

Sorry, closed this by accident. Reopened now. Not sure if marking the methods optional is possible though, as this would require them to be marked @objc which is not possible as their parameter is a struct.

@mariusc
Copy link
Contributor

mariusc commented Sep 12, 2017

I think we could make it work by adding a protocol extension which implements both methods and does nothing. It's a hack, but it could probably work.

@tereks
Copy link
Author

tereks commented Sep 12, 2017

I think creating protocol extension is best choice.

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

No branches or pull requests

4 participants