diff options
Diffstat (limited to 'iGopherBrowser/SidebarView.swift')
-rw-r--r-- | iGopherBrowser/SidebarView.swift | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/iGopherBrowser/SidebarView.swift b/iGopherBrowser/SidebarView.swift index 301f45e..f19670f 100644 --- a/iGopherBrowser/SidebarView.swift +++ b/iGopherBrowser/SidebarView.swift @@ -9,18 +9,18 @@ import Foundation import SwiftUI struct SidebarView: View { - let hosts: [GopherNode] - var onSelect: (GopherNode) -> Void - - var body: some View { - VStack { - List(hosts, children: \.children) { node in - Text(node.message ?? node.host) - .onTapGesture { - onSelect(node) - } - } - } - .navigationTitle("Your Gophertree") + let hosts: [GopherNode] + var onSelect: (GopherNode) -> Void + + var body: some View { + VStack { + List(hosts, children: \.children) { node in + Text(node.message ?? node.host) + .onTapGesture { + onSelect(node) + } + } } + .navigationTitle("Your Gophertree") + } } |