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

Fixed overridden delegates were not forwarded #40

Merged
merged 1 commit into from
Jun 28, 2018
Merged

Fixed overridden delegates were not forwarded #40

merged 1 commit into from
Jun 28, 2018

Conversation

OrkhanAlikhanov
Copy link
Contributor

Fixed enabling Motion causes delegate methods to not be called as described in #27

I used forwardingTarget(for:) method in order to avoid manually implementing delegates and forwarding them to previousXDelegate. This way has a couple of benefits. If sometime Apple adds new delegate methods our code will not need to be changed and will forward those delegate methods without hesitation.

Copy link
Member

@daniel-jonathan daniel-jonathan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@daniel-jonathan
Copy link
Member

I really like your approach in using forwardingTarget(for:). Well done. Thank you!

@daniel-jonathan daniel-jonathan merged commit 0b4833d into CosmicMind:development Jun 28, 2018
@daniel-jonathan daniel-jonathan self-assigned this Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants