Skip to content

Commit

Permalink
produce direct on plain viewcontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
klaidas-trafi committed Feb 9, 2024
1 parent 23df85d commit 607380e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/StoryFlow/Interfaces/OuputProducing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ extension OutputProducing where Self: UIViewController {
}

private var flowKey = 0


public extension UIViewController {

func produceDirect<T>(_ output: T) {
Flow<T>.implicit().proceed(with: output, from: self)
}

}

0 comments on commit 607380e

Please sign in to comment.