Skip to content

Commit

Permalink
dismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeloper committed Feb 18, 2021
1 parent 75b7d2f commit f02b7b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/NavigationKit/NKManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import SwiftUI

public struct NKManager {
public static func dismiss(with presentationMode: Binding<Bool>) {
presentationMode.wrappedValue.dismiss()
}

public static func dismissTwo(with presentationsMode: [Binding<Bool>]) {
presentationsMode.forEach {
$0.wrappedValue.dismiss()
Expand Down

0 comments on commit f02b7b9

Please sign in to comment.