Skip to content

Commit

Permalink
produce direct on plain viewcontroller (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaidas-trafi authored Feb 9, 2024
1 parent 23df85d commit 75cb7d6
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 75cb7d6

Please sign in to comment.