// // View+ViewModifiers.swift // Browse // // Created by Javier Cicchelli on 14/12/2022. // Copyright © 2022 Röck+Cöde. All rights reserved. // import DataModels import SwiftUI extension View { func navigate( to destination: some View, tagged tag: Stack, in stack: Binding ) -> some View { modifier(StackNavigationViewModifier( tag: tag, stack: stack, destination: { destination } )) } func createFolder( isPresenting: Binding, id: String, submitted: @escaping ActionClosure ) -> some View { modifier(CreateFolderViewModifier( isPresenting: isPresenting, id: id, submitted: submitted )) } func delete( item: Binding<(any FileSystemItem)?>, deleted: @escaping ActionClosure ) -> some View { modifier(DeleteItemViewModifier( item: item, deleted: deleted )) } }