AutoCat2/Shared/Views/MainViewSmall.swift
2021-08-03 14:06:18 +03:00

46 lines
1.2 KiB
Swift

import SwiftUI
struct MainViewSmall: View {
var body: some View {
NavigationView {
TabView {
CheckView()
.tabItem {
Image(systemName: "eye")
Text("Check")
}
RecordsView()
.tabItem {
Image(systemName: "recordingtape")
Text("Records")
}
SearchView()
.tabItem {
Image(systemName: "magnifyingglass")
Text("Search")
}
SettingsView()
.tabItem {
Image(systemName: "gear")
Text("Settings")
}
}
#if os(iOS)
.navigationBarHidden(true)
#endif
Text("detail")
}
}
}
struct MainViewSmall_Previews: PreviewProvider {
static var previews: some View {
Group {
MainViewSmall()
MainViewSmall()
.previewInterfaceOrientation(.landscapeLeft)
.previewDevice("iPad Pro (9.7-inch)")
}
}
}