Skip to content

Commit e3a5f22

Browse files
indents
1 parent 9f21071 commit e3a5f22

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
//
2+
// MainTabView.swift
3+
// GitDiffExample
4+
//
5+
// Created by Tornike Gomareli on 18.06.25.
6+
//
7+
8+
import SwiftUI
9+
10+
struct MainTabView: View {
11+
@State private var selectedTab = 0
12+
13+
var body: some View {
14+
TabView(selection: $selectedTab) {
15+
ShowcaseView()
16+
.tabItem {
17+
Label("Showcase", systemImage: "star.fill")
18+
}
19+
.tag(0)
20+
21+
ThemeGalleryView()
22+
.tabItem {
23+
Label("Themes", systemImage: "paintbrush.fill")
24+
}
25+
.tag(1)
26+
27+
CustomizationPlayground()
28+
.tabItem {
29+
Label("Customize", systemImage: "slider.horizontal.3")
30+
}
31+
.tag(2)
32+
33+
ExamplesView()
34+
.tabItem {
35+
Label("Examples", systemImage: "doc.text.fill")
36+
}
37+
.tag(3)
38+
39+
CodeSnippetsView()
40+
.tabItem {
41+
Label("Code", systemImage: "curlybraces")
42+
}
43+
.tag(4)
44+
}
45+
.accentColor(.blue)
46+
}
47+
}
48+
49+
#Preview {
50+
MainTabView()
51+
}

0 commit comments

Comments
 (0)