UIViewBuilder:从FunctionBuilder生成UIKit(不是SwiftUI)组件

时间:2021-04-15 16:10:16
【文件属性】:
文件名称:UIViewBuilder:从FunctionBuilder生成UIKit(不是SwiftUI)组件
文件大小:43KB
文件格式:ZIP
更新时间:2021-04-15 16:10:16
Swift UIViewBuilder 使用纯UIKit的替代SwiftUI。 来自iOS9的支持。 这是在制品项目。 所有API都不固定。 让我们在“示例”应用中尝试这些功能。 HostingController { VStack { if isHello { Label ( text : " hello " ) } else { Label ( text : " good night " ) } Label ( text : " world " ) } } HostingController { List { ForEach ( data : [ 0 ..< 1000 ]) { Label ( text : " \( $0 ) " ) } } }
【文件预览】:
UIViewBuilder-master
----.github()
--------workflows()
----Sources()
--------UIViewBuilder()
----Tests()
--------UIViewBuilderTests()
--------LinuxMain.swift(134B)
----Example()
--------Example.xcodeproj()
--------Example.xcworkspace()
--------Example()
----README.md(430B)
----Package.swift(1KB)
----Benchmark()
--------Benchmark.swift(6KB)
----.gitignore(62B)

网友评论