Skip to content

Commit

Permalink
Merge pull request #10 from keeplo/develop
Browse files Browse the repository at this point in the history
[Hotfix] v0.4.2
  • Loading branch information
Marcorable authored Oct 23, 2023
2 parents 05c0bde + 9504899 commit 3a58b71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public extension ControllerableView {
rootViewController.present(nextViewController, animated: true)
}

func dismiss() {
stateView.viewController?.dismiss(animated: true)
func dismiss(completion: (() -> Void)? = nil) {
stateView.viewController?.dismiss(animated: true, completion: completion)
}

}
2 changes: 1 addition & 1 deletion Sources/ControllerableViewModel/ControllerableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public protocol ControllerableView: View {
to presentationStyle: UIModalPresentationStyle?,
by transitionStyle: UIModalTransitionStyle?
)
func dismiss()
func dismiss(completion: (() -> Void)?)

}

0 comments on commit 3a58b71

Please sign in to comment.