短评 · ·

X 归档 2024-10-08

3 条动态 · 图 2 · 视频 0
@sarunw01:34原推文
SwiftUI has many built-in layout containers like HStack, VStack, and Grid.

In iOS 16, we have an official way to create a custom layout using the Layout protocol.

https://sarunw.com/posts/swiftui-custom-layout/
SwiftUI 有很多内置的布局容器,比如 HStack、VStack 和 Grid。

到了 iOS 16,我们有了官方途径,可以用 Layout 协议创建自定义布局。
@sarunw 的配图 1/1
@sarunw14:23原推文
SwiftUI has many built-in layout containers like HStack, VStack, and Grid.

In iOS 16, we have an official way to create a custom layout using the Layout protocol.

https://sarunw.com/posts/swiftui-custom-layout/
SwiftUI 有很多内置的布局容器,比如 HStack、VStack 和 Grid。

到了 iOS 16,我们有了官方途径,可以用 Layout 协议创建自定义布局。

https://sarunw.com/posts/swiftui-custom-layout/
@sarunw 的配图 1/1