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

Allow CKComponentViewConfiguration to create a CALayer instead of a UIView #34

Closed
greghe opened this issue Mar 26, 2015 · 2 comments
Closed

Comments

@greghe
Copy link

greghe commented Mar 26, 2015

It would be great if there were an option for a CKCompositeComponent to construct a CALayer hierarchy instead (or, with a bit more work, in addition to) its UIView hierarchy. CALayers are more lightweight than UIViews and more performant.

@adamjernst
Copy link
Contributor

Great suggestion! You could probably accomplish this in an external (non-core) component by overriding mountInContext. Maybe this would be a good third-party component class to live in a separate repo, in the name of keeping the core small?

That said, all pull requests considered :)

@adamjernst
Copy link
Contributor

@greghe I'm going to close this for now as I think this would be ideally suited to an separate Cocoapod with a component that makes it easy to instantiate layers. If you want to give it a stab that would be awesome—otherwise, hopefully someone else can soon!

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

No branches or pull requests

3 participants