IceCubes/IceCubesApp/App/Tabs/NavigationSheet.swift

25 lines
419 B
Swift

import AppAccount
import DesignSystem
import Env
import SwiftUI
@MainActor
struct NavigationSheet<Content: View>: View {
@Environment(\.dismiss) private var dismiss
var content: () -> Content
init(@ViewBuilder content: @escaping () -> Content) {
self.content = content
}
var body: some View {
NavigationStack {
content()
.toolbar {
CloseToolbarItem()
}
}
}
}