ManuscriptSwift 编写的 AutoLayoutKit
Manuscript 是一款用 Swift 写成的 AutoLayoutKit 。
要求:
-
iOS 8.0+
-
Xcode 6.3
概貌:
Manuscript.layout(myButton) { c in c.set(.Height, to: 60.0) c.set(.Width, to: 60.0) c.make(.Bottom, equalTo: self.view, s: .Bottom, minus: 10.0) c.make(.CenterX, equalTo: self.view, s: .CenterX) }
评论