var body: some View {
NavigationView {
ScrollView {
NavigationLink {
PushedView()
} label: {
Text("이동하기")
}
}
}
}struct NavigatingViewWrapper<V: View>: View {
var navigatingContentHandler: () -> V
var body: some View {
navigatingContentHandler()
}
init(_ navigatingContentHandler: @autoclosure @escaping () -> V) {
self.navigatingContentHandler = navigatingContentHandler
}
}