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

请问这个库还在维护当中吗 #3

Open
bilibili11 opened this issue Apr 22, 2024 · 3 comments
Open

请问这个库还在维护当中吗 #3

bilibili11 opened this issue Apr 22, 2024 · 3 comments

Comments

@bilibili11
Copy link

No description provided.

@lixiang1994
Copy link
Owner

在维护, 有什么问题要反馈吗?

@bilibili11
Copy link
Author

我想请问一下
cardView.snp.makeConstraints { (make) in
make.top.equalTo(16.zoom())
make.left.right.equalToSuperview().inset(15.zoom())
make.bottom.equalTo(-26.zoom())
}
这里使用的尺寸应该对应多少尺寸的设计稿为标准 375*667吗,或者是可以指定宽高比?

@lixiang1994
Copy link
Owner

默认是按照375宽度计算的, 当然你也可以根据自己的需求重写计算的逻辑

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

2 participants