Skip to content

Releases: ZeeZide/ViewController

Dismissed!

01 May 14:25
3699adc
Compare
Choose a tag to compare

This minor release fixes a race when dismissing a sheet. When doing so, the ContentView would sometimes show an error while the sheet contents refresh during slide-out.

Also allows setting the log level using the LOGLEVEL environment variable (error/debug are common values).
Plus a few fixes in the debug panel.

Finally the NavigationController now supports a style, so that navigation can be forced to use a stack on iOS (often appropriate in sheets on iPad).

Less is better

30 Apr 13:16
8fd9b35
Compare
Choose a tag to compare

This drops the "custom" presentation modifiers for sheets and navigations (presentAsSheet and presentInNavigation) as per issue #3. Most users are going to use the "auto presentation" (or PushLink) anyways.

A user can still present w/ the .custom mode, but to perform the presentation, a respective .sheet or NavigationLink(isActive:) needs to be used (alongside the bindings offered by ViewController.

`view` Building

27 Apr 13:23
a7d5ad0
Compare
Choose a tag to compare

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.

Initially

27 Apr 08:54
Compare
Choose a tag to compare
Initially Pre-release
Pre-release

An initial test release of ViewController. It seems to work fine so far, but needs some refinement.