File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
GitDiffExample/GitDiffExample Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments