Build Complex Lists in SwiftUI

Let’s create a collection-esque view in SwiftUI

laptop with code on the screen
Photo by AltumCode on Unsplash

Overview

Assumptions

API design

Implementation

Models

Transformation of data into a view

code block
code block
View Builder build functions

Collection guts

Content declaration

Laying out the collection

completed mountain app as it appears on an iPhone screen
completed mountain app as it appears on an iPhone screen
Configured collection

Conclusion

iOS Engineer at Zendesk

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store