-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
UIView with programmatic layout #139
Comments
I created a workaround, but I'm not sure I like it very much. It requires each UIView subclass to override the addConstraints() method, and what I've done with subview constraints feels awkward:
|
Bah. This is no good. I still can't see programmatic updates to UIViews that are NOT related to layout constraints. I guess I could just stop using anonymous closures to configure my subview properties and do all of that within a method that gets called both on init and on injection... |
Did you fix it ? Or got a workaround ? |
Yeah, I mentioned my workaround above:
Here's an example:
...and then I added a call to
|
I'd like to use Injection with my UIView subclasses that contain programmatic layout. That is, I've created Auto Layout constraints using Swift code within UIViews...not within UIViewControllers. Injection doesn't seem to help in this scenario, or is there something I'm missing?
Thanks!
The text was updated successfully, but these errors were encountered: