Releases: ZeeZide/ViewController
Dismissed!
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
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
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.