SwiftUI Tutorials: Function Builder

Function Builder
  • 7

    Create Your First Function Builder in 5 Minutes

    SwiftUI’s declarative syntax is made possible by function builders [...] This is what allows you to combine and compose views together (e.g., HStack taking two Views and forming a TupleView). Function builders are a huge step forward in Swift supporting declarative programming, and provide the basis for tons of powerful new DSLs.

    Medium - Carson Katri