-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContentView.swift
More file actions
49 lines (42 loc) · 1.38 KB
/
ContentView.swift
File metadata and controls
49 lines (42 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import SwiftUI
struct ContentView: View {
@State private var selectedTab = 0
var body: some View {
TabView(selection: $selectedTab) {
// 1. СТАРТ
HomeView()
.tabItem {
Image(systemName: "house.fill")
Text("Старт")
}
.tag(0)
// 2. УЧИТЬ (Слова и Грамматика)
LessonsView()
.tabItem {
Image(systemName: "book.closed.fill")
Text("Учить")
}
.tag(1)
// 3. ТРОФЕИ (Используем TrophiesView)
LeaderboardView() // <-- НОВЫЙ ЭКРАН
.tabItem {
Image(systemName: "trophy.fill")
Text("Рейтинг")
}
.tag(2)
// 4. ПРОФИЛЬ
ProfileView()
.tabItem {
Image(systemName: "person.fill")
Text("Профиль")
}
.tag(3)
}
.tint(.purple)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}