VDLayout:UIKit的声明式包装器

时间:2021-03-07 01:50:14
【文件属性】:
文件名称:VDLayout:UIKit的声明式包装器
文件大小:18KB
文件格式:ZIP
更新时间:2021-03-07 01:50:14
Swift VD版面 描述 该存储库提供了一种以SwiftUI风格进行布局的声明式方法 例子 view. add { UIStackView. V { UILabel ( " 1 " ) . chain . textAlignment [. center ] . textColor [. red ] . contentPriority . horizontal . compression [. required ] UILabel (). chain . text [ " 2 " ] UIButton (). chain . title [ " Button " ] } . chain . alignment [. center ] . distribution [. equalSpacing ] . spacing [ 3 ] . edges ().
【文件预览】:
VDLayout-main
----.gitignore(87B)
----Sources()
--------VDLayout()
----LICENSE(1KB)
----VDLayout.podspec(1KB)
----README.md(3KB)
----Package.resolved(1KB)
----Package.swift(1KB)
----Tests()
--------VDLayoutTests()

网友评论