Integrated the StackNavigationViewModifier view modifier by the "navigate(to:tagged:in:)" function in the View+ViewModifiers extension for the Browse module.
This commit is contained in:
parent
12104f90dd
commit
a393449bee
@ -0,0 +1,23 @@
|
|||||||
|
//
|
||||||
|
// 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 }
|
||||||
|
))
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user