Skip to content

Commit d8daebf

Browse files
tabview for navigation
1 parent 164841e commit d8daebf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import SwiftUI
2+
import gitdiff
3+
4+
struct MainTabView: View {
5+
var body: some View {
6+
TabView {
7+
ExamplesView()
8+
.tabItem {
9+
Label("Examples", systemImage: "doc.text")
10+
}
11+
12+
ThemesView()
13+
.tabItem {
14+
Label("Themes", systemImage: "paintbrush")
15+
}
16+
17+
ConfigurationView()
18+
.tabItem {
19+
Label("Config", systemImage: "gearshape.2")
20+
}
21+
22+
APIReferenceView()
23+
.tabItem {
24+
Label("API", systemImage: "curlybraces")
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)