24 lines
476 B
Swift
24 lines
476 B
Swift
|
//
|
||
|
// View+ViewModifiers.swift
|
||
|
// Browse
|
||
|
//
|
||
|
// Created by Javier Cicchelli on 14/12/2022.
|
||
|
// Copyright © 2022 Röck+Cöde. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import SwiftUI
|
||
|
|
||
|
extension View {
|
||
|
func navigate(
|
||
|
to destination: some View,
|
||
|
tagged tag: Stack,
|
||
|
in stack: Binding<Stack?>
|
||
|
) -> some View {
|
||
|
modifier(StackNavigationViewModifier(
|
||
|
tag: tag,
|
||
|
stack: stack,
|
||
|
destination: { destination }
|
||
|
))
|
||
|
}
|
||
|
}
|