We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to do this type of thing
layout(splitView, boxStatus) { split, box in box.height == 31 split.height == box.superview!.height - 31 split.bottom == box.top }
which works, but I'd like to parameterize this so the 31 is a variable. (I'm not even able to use box.height in the second line.)
box.height
Hints, please, or is this a limitation of the framework?
Thanks!
The text was updated successfully, but these errors were encountered:
you need to cast your variable to Float, as per #56. So
Float
layout(splitView, boxStatus) { split, box in box.height == CGFloat(someVar) split.height == box.superview!.height - CGFloat(someVar) split.bottom == box.top }
should do the trick
Sorry, something went wrong.
Wow, okay! I'm using Float(someVar) instead of CGFloat but it all works now. Thanks for responding (and for Cartography, again)!
Float(someVar)
CGFloat
Would be nice to have a FAQ instead of having to look through issues. Not sure if GitHub does that....
No branches or pull requests
I'm trying to do this type of thing
which works, but I'd like to parameterize this so the 31 is a variable. (I'm not even able to use
box.height
in the second line.)Hints, please, or is this a limitation of the framework?
Thanks!
The text was updated successfully, but these errors were encountered: