payfrit-beacon-ios/_backup/Views/BeaconDashboard.swift
John Pinkyfloyd 8c2320da44 Add ios-marketing idiom, iPad orientations, launch screen
- Fixed App Store icon display with ios-marketing idiom
- Added iPad orientation support for multitasking
- Added UILaunchScreen for iPad requirements
- Removed unused BLE permissions and files from build

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 19:38:11 -08:00

39 lines
1.2 KiB
Swift

import SwiftUI
struct BeaconDashboard: View {
@EnvironmentObject var appState: AppState
let business: Employment
@State private var isReady = false
var body: some View {
Group {
if isReady {
TabView {
BeaconListScreen()
.tabItem {
Label("Beacons", systemImage: "sensor.tag.radiowaves.forward.fill")
}
ServicePointListScreen()
.tabItem {
Label("Service Points", systemImage: "mappin.and.ellipse")
}
ScannerScreen()
.tabItem {
Label("Scanner", systemImage: "antenna.radiowaves.left.and.right")
}
}
.tint(.payfritGreen)
} else {
ProgressView("Loading...")
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
.task {
await APIService.shared.setBusinessId(business.businessId)
appState.setBusiness(id: business.businessId, name: business.businessName)
isReady = true
}
}
}