目录
目录README.md

ConstraintBuilder

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)
}
关于
47.0 KB
邀请码