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

IBAnimatable without Interface Builder #528

Open
JakeLin opened this issue Jan 16, 2018 · 2 comments
Open

IBAnimatable without Interface Builder #528

JakeLin opened this issue Jan 16, 2018 · 2 comments

Comments

@JakeLin
Copy link
Member

JakeLin commented Jan 16, 2018

Currently, we need to use the subclass like AnimatableView. If we can provide an extension property like ib to UIKit components, then we can use the properties from the protocols e.g. Animatable, CornerRadiusDesignable etc. Then we can use this ib property to set the animatable or designable properties like view.ib.cornerRadius = 20 in code. view is a just pure UIView not AnimatableView.

Since IBAnimatable has some powerful protocols, some developer they don't want to use the subclasses (e.g. AnimatableView) and they don't want to make a subclass by themselves. Providing an extension property ib can help them use IBAnimatable easily.

@tbaranes
Copy link
Member

tbaranes commented Feb 5, 2018

Here a list of what's left once #536 is merged:

  • Documentation: we need to clarify how we want to do it
  • Demo app: is this necessary?
  • Support of Animatable: that one is a hard one because everything is depending of UIView
  • Extends ib to more types (BarButton, ...)

If anyone wants to pick one of these task, feel free to do it. I won't have time to work on these during the next weeks 😬

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

2 participants