Layout

Layout

Brief

  • Use Geometry Reader for UI orientation changes

  • frame (.max, min)

  • frame(.infinity)

  • Grid layout

  • HStack & VStack

https://www.fivestars.blog/articles/swiftui-share-layout-information/

https://www.jessesquires.com/blog/2023/03/23/improve-multiplatform-swiftui-code/

https://www.fivestars.blog/articles/flexible-swiftui/

https://rodionartyukhin.medium.com/adaptive-layout-for-ios-in-swift-20842307116f

https://www.hackingwithswift.com/quick-start/swiftui/how-to-provide-relative-sizes-using-geometryreader

https://www.swiftanytime.com/blog/geometry-reader-in-swiftui

https://www.fivestars.blog/articles/safe-area-insets/

https://daddycoding.com/2020/02/26/swiftui-geometryreader/

https://swiftwithmajid.com/2020/11/04/how-to-use-geometryreader-without-breaking-swiftui-layout/

https://swiftwithmajid.com/2021/11/03/managing-safe-area-in-swiftui/