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:
Javier Cicchelli 2022-12-15 00:03:10 +01:00
parent 12104f90dd
commit a393449bee

View File

@ -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 }
))
}
}