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
Using a constant #36
Comments
What error are you getting? Have you tried casting to |
Results in:
Results in:
|
Hmm, it's not affected by #9, is it? |
No, it happens in multiple line blocks as well. Let me know if you'd like |
That would be great |
Ah, dang, you have to cast to let margin = 20.0 as Float
layout(label) { label in
label.left == label.superview!.left + margin
label.right == label.superview!.right - margin
} (sorry for the late reply) |
Ah great, thanks! |
I'm trying to use a constant to specify how much of a margin i want to use.
let margin = 10.0
label.top == label.superview!.top + margin
I can't get this to work no matter how I cast margin. Am I missing something?
The text was updated successfully, but these errors were encountered: