Files
honeyDueKMP/iosApp/iosApp/MainTabView.swift
Trey t e716c919f3 Add documents and warranties feature with image upload support
- Implement complete document management system for warranties, manuals, receipts, and other property documents
- Add DocumentsScreen with tabbed interface for warranties and documents
- Add AddDocumentScreen with comprehensive form including warranty-specific fields
- Integrate image upload functionality (camera + gallery, up to 5 images)
- Fix FAB visibility by adding bottom padding to account for navigation bar
- Fix content being cut off by bottom navigation bar (96dp padding)
- Add DocumentViewModel for state management with CRUD operations
- Add DocumentApi for backend communication with multipart image upload
- Add Document model with comprehensive field support
- Update navigation to include document routes
- Add iOS DocumentsWarrantiesView and AddDocumentView for cross-platform support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 22:38:34 -06:00

55 lines
1.3 KiB
Swift

import SwiftUI
struct MainTabView: View {
@EnvironmentObject var loginViewModel: LoginViewModel
@State private var selectedTab = 0
var body: some View {
TabView(selection: $selectedTab) {
NavigationView {
ResidencesListView()
}
.tabItem {
Label("Residences", systemImage: "house.fill")
}
.tag(0)
NavigationView {
AllTasksView()
}
.tabItem {
Label("Tasks", systemImage: "checkmark.circle.fill")
}
.tag(1)
NavigationView {
ContractorsListView()
}
.tabItem {
Label("Contractors", systemImage: "wrench.and.screwdriver.fill")
}
.tag(2)
NavigationView {
DocumentsWarrantiesView(residenceId: nil)
}
.tabItem {
Label("Documents", systemImage: "doc.text.fill")
}
.tag(3)
// NavigationView {
// ProfileTabView()
// }
// .tabItem {
// Label("Profile", systemImage: "person.fill")
// }
// .tag(4)
}
}
}
#Preview {
MainTabView()
}