Skip to content

`view` Building

Compare
Choose a tag to compare
@helje5 helje5 released this 27 Apr 13:23
· 15 commits to main since this release
a7d5ad0

This release renames the contentView property to view, and more importantly: makes it a @ViewBuilder. This makes the simple flow even easier:

class HomePage: ViewController {

  var view : some View {
    Text("Welcome Home!")
      .font(.title)
  }
}

Even less boilerplate and ViewControllerView is not really needed anymore.