微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

NSLayoutConstraint-Equations Swift 库

程序名称:NSLayoutConstraint-Equations

授权协议: 未知

操作系统: iOS

开发语言: Swift

NSLayoutConstraint-Equations 介绍

NSLayoutConstraint-Equations 是一种 Swift 库,其作用是可编程地创建自动布局约束,类似数学方程式和不等式。

使用:

view.addConstraint(Top(label) == 1 * Top(button) + 20)

view.addConstraints(Top(label) == Top(button) |+ CenterX(label) == CenterX(self.view) |+ CenterY(label) == CenterY(self.view) |+ (Bottom(button) == Bottom(self.view) + 600)|10)

NSLayoutConstraint-Equations 官网

https://github.com/ahmedragab/NSLayoutConstraint-Equations

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐