X 归档 2024-10-08
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/
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 协议创建自定义布局。
到了 iOS 16,我们有了官方途径,可以用 Layout 协议创建自定义布局。
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/
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/
到了 iOS 16,我们有了官方途径,可以用 Layout 协议创建自定义布局。
https://sarunw.com/posts/swiftui-custom-layout/



