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

Remove @objc conformance and refactor optional protocol methods to default implementations in protocol extensions. #6

Merged
merged 1 commit into from Jan 11, 2016

Conversation

fe9lix
Copy link
Contributor

@fe9lix fe9lix commented Jan 8, 2016

Remove @objc conformance and refactor optional protocol methods to default implementations in protocol extensions. Useful if you want to create a protocol ExpandingUserInterface and a protocol extension with default implementations for all expandable ViewControllers (e.g. extension ExpandingUserInterface where Self: UIViewController). You can then implement default implementations for only those animation adapter methods that you need while leaving the rest as defined in the default implementations of DAExpandAnimation (no ops...).

…fault implementations in protocol extensions.
ifitdoesntwork added a commit that referenced this pull request Jan 11, 2016
Remove @objc conformance and refactor optional protocol methods to default implementations in protocol extensions.
@ifitdoesntwork ifitdoesntwork merged commit ae30cf4 into ifitdoesntwork:master Jan 11, 2016
@ifitdoesntwork
Copy link
Owner

Nice refactoring!

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

Successfully merging this pull request may close these issues.

None yet

2 participants