-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.swift
43 lines (29 loc) · 1.04 KB
/
Home.swift
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
import SwiftUI
struct homeView: View {
//@StateObject private var fetcher = ItunesDataFetcher()
//ContentView().environmentObject(fetcher)
var body: some View {
TabView{
Maydaylist()
.tabItem {
Text("主頁")
.foregroundColor(Color.primary)
}
MaydayIntro()
.tabItem{
Text("五月天介紹")
.foregroundColor(Color.primary)
}
ItemList()
.tabItem{
Text("歌曲搜尋")
.foregroundColor(Color.primary)
}
}
}
struct homeView_Previews: PreviewProvider {
static var previews: some View {
homeView()
}
}
}