-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainTabView.swift
46 lines (43 loc) · 1.2 KB
/
MainTabView.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
44
45
46
//
// MainTabView.swift
// Industrial_APP
//
// Created by User on 2023/12/29.
//
import SwiftUI
struct MainTabView: View {
var body: some View {
ZStack {
Color.gray.edgesIgnoringSafeArea(.all) // Set background color
TabView {
Order().tabItem {
Image(systemName: "storefront.fill")
Text("Order")
}
InventoryView().tabItem {
Image(systemName: "list.bullet.clipboard")
Text("Inventory")
}
IE().tabItem {
Image(systemName: "ellipsis.message.fill")
Text("IE")
}
MachineControl().tabItem {
Image(systemName: "wrench.adjustable")
Text("Machine Control")
}
Cost().tabItem {
Image(systemName: "dollarsign.circle")
Text("Cost")
}
}
.accentColor(.black)
}
}
}
// Preview for SwiftUI canvas
struct MainTabView_Previews: PreviewProvider {
static var previews: some View {
MainTabView()
}
}