伪饼图 1.0.0

伪饼图 1.0.0

pseudozain 维护。



伪饼图 1.0.0

  • pseudozain

Carthage Compatible Platform License: MIT

PseudoConstraints

PseudoConstraints是一个简单易懂的接口,可以编程设置NSLayoutConstraints。PseudoConstraints使用核心的本地UIKit API,使其更加高效。

安装

PseudoConstraint通过Cocoapods和Carthage提供。

CocoaPods安装

要使用CocoaPods安装PseudoConstraint,请将以下内容添加到您的Podfile中

pod 'IdentityScanner'

并执行

pod install

Carthage安装

要通过CocoaPods安装PseudoConstraint,请在您的Cartfile中添加以下内容

github "pseudozain/PseudoConstraints"

并执行

carthge update --plateform iOS

用法

PseudoConstraints 使用简单,您可以像以下这样设置视图的约束

headingLabel
    .alignEdgeWithSuperviewSafeArea(.top, constant: 45)
    .alignEdgesWithSuperview([.left, .right], constant: 25)

detailsLabel
    .below(headingLabel, constant: 15)
    .centerHorizontallyInSuperview()
    .alignEdgeWithSuperviewSafeArea(.left, constant: 25)

作者

宰恩·乌尔·阿比·丁

许可证

PseudoConstraints 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。