Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Swift 中将 SnapKit ConstraintItem 转换为整数?例如,我如何将下面的 ConstraintItem 转换为可用的整数?
view.snp.width
试试view.snp.width.constraint.constant。
view.snp.width.constraint.constant