Episode #430

SwiftUI Function Builders

8 minutes
Published on March 5, 2020

This video is only available to subscribers. Get access to this video and 573 others.

In this episode we add the ability to provide modal content from outside of the modal view. To do this we can leverage @ViewBuilder which is a type of Function Builder. This is a new Swift feature that gives SwiftUI's syntax a DSL rather than writing out vanilla Swift syntax.

Episode Links

  • Function Builders - Initial Pitch - This is the original pitch for the function builders feature and syntax from last summer. I find it interesting to look back at what they were thinking when designing for SwiftUI.

This episode uses Xcode 11.4-beta, Swift 5.2.