Merge pull request #3 from PimCoumans/feature/improved-generics Improved generics
Merge pull request #3 from PimCoumans/feature/improved-generics
Improved generics
Convenience Auto Layout methods and ability to apply your constraints through a function builder
someView.extendToSuperview() someOtherView.extendToSuperviewLayoutMargins() centeredView.center(in: mySpecialLayoutGuide)
someView.applyConstraints { $0.leadingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.leadingAnchor) $0.centerYAnchor.constraint(equalTo: contentView.layoutMarginsGuide.centerYAnchor) }
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
ConstraintBuilder
Convenience Auto Layout methods and ability to apply your constraints through a function builder