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

multipliedBy not working #513

Closed
chimung opened this issue May 21, 2018 · 1 comment
Closed

multipliedBy not working #513

chimung opened this issue May 21, 2018 · 1 comment

Comments

@chimung
Copy link

chimung commented May 21, 2018

[ * ] I have looked at the Documentation
[ * ] I have read the F.A.Q.
[ * ] I have filled out this issue template.

Issue Info

Info Value
Platform ios
Platform Version 9.2
SnapKit Version 4.0.0
Integration Method cocoapods

Issue Description

I am trying make my frame of image auto change its size with "multipliedBy".
frameImageContainer.snp.makeConstraints({(make) in make.width.equalTo(295).multipliedBy(0.2) make.height.equalTo(355).multipliedBy(0.2) print("ratio", ratio) make.top.equalToSuperview().offset(self.view.frame.height/8) make.centerX.equalToSuperview(); })

But it not working like expected. It keep their size (295x355). Can anyone figure out what i am wrong ?

@gy37
Copy link

gy37 commented Sep 26, 2018

view1.attr1 = view2.attr2 * multiplier + constant
nslayoutconstraint

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

No branches or pull requests

3 participants