wwt / SwiftCurrent

A library for managing complex workflows in Swift

Home Page:https://wwt.github.io/SwiftCurrent/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Modal workflow does not abandon back to root

Richard-Gist opened this issue · comments

Describe the bug

When launching a workflow that has multiple screens presented modally, when calling abandon on the workflow, the stack of modals are not abandoned. Only the top modal is dismissed.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Workflow with at least 2 modals
  2. Launch the workflow modaly
  3. complete the workflow and call abandon in the onFinish

Expected behavior

All modals are dismissed and I am back to the root view.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

  • XCode Version: 12.5
  • Workflow Version: 3.0.1

Debug Logs

If applicable, add any debug logs that you have around the time of the problem.