wwt / SwiftCurrent

A library for managing complex workflows in Swift
https://wwt.github.io/SwiftCurrent/
Apache License 2.0
307 stars 19 forks source link

SwiftUI FullScreenCover support #119

Closed Tyler-Keith-Thompson closed 3 years ago

Tyler-Keith-Thompson commented 3 years ago

Is your feature request related to a problem? Please describe.

118 gives modal support with sheets, but I'd also like the ability to define full screen covers.

Describe the solution you'd like

Something like

WorkflowLauncher(isLaunched: .constant(true)) {
    thenProceed(with: FirstView.self) {
        thenProceed(with: SecondView.self).presentationType(.modal(.fullScreenCover))
    }
}

Describe alternatives you've considered

There's really not a good alternative if you're in the middle of a workflow.

Additional context

Unfortunately, ViewInspector does not support FullScreenCover at this time, so we will have to do without it.