wwt / SwiftCurrent

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

Launch styles in SwiftUI #87

Closed Richard-Gist closed 3 years ago

Richard-Gist commented 3 years ago

I want SwiftUI to have launch styles like UIKit so I can put my stuff in a navigation view.

I'd like something like:

WorkflowLauncher(isLaunched: .constant(true))
   .launchStyle(.navigationStack)
   .thenProceed(with: WorkflowItem(FR1.self).launchStyle(.modal()))

Describe alternatives you've considered

For Modals, I can embed them myself in sheets and share the binding with the WorkflowLauncher or set it on the view. For navigation stacks, I'm not sure what I can do.

Richard-Gist commented 3 years ago

I'm creating this issue so the milestone is not falsely reporting that we are complete with SwiftUI support.

Richard-Gist commented 3 years ago

Closed as it was split into 2 different issues: #100 #101