wip
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
PLEASE DELETE THE FOLLOWING FILES:
|
||||
|
||||
❌ AuthSubviews.swift
|
||||
❌ CommonSubviews.swift
|
||||
❌ ResidenceSubviews.swift
|
||||
❌ TaskSubviews.swift
|
||||
|
||||
These are old consolidated files. The new individual subview files are in the Subviews folder:
|
||||
|
||||
✅ Subviews/Common/ErrorView.swift
|
||||
✅ Subviews/Common/ErrorMessageView.swift
|
||||
✅ Subviews/Auth/LoginHeader.swift
|
||||
✅ Subviews/Auth/RegisterHeader.swift
|
||||
✅ Subviews/Residence/SummaryCard.swift
|
||||
✅ Subviews/Residence/SummaryStatView.swift
|
||||
✅ Subviews/Residence/ResidenceCard.swift
|
||||
✅ Subviews/Residence/TaskStatChip.swift
|
||||
✅ Subviews/Residence/EmptyResidencesView.swift
|
||||
✅ Subviews/Residence/PropertyHeaderCard.swift
|
||||
✅ Subviews/Residence/PropertyDetailItem.swift
|
||||
✅ Subviews/Task/TaskPill.swift
|
||||
✅ Subviews/Task/StatusBadge.swift
|
||||
✅ Subviews/Task/PriorityBadge.swift
|
||||
✅ Subviews/Task/EmptyTasksView.swift
|
||||
✅ Subviews/Task/TaskCard.swift
|
||||
✅ Subviews/Task/TasksSection.swift
|
||||
|
||||
Each file contains only ONE view component with its own preview.
|
||||
@@ -61,7 +61,7 @@ class LookupsManager: ObservableObject {
|
||||
|
||||
// Observe all tasks
|
||||
Task {
|
||||
for await tasks in repository.allTasks.taskTaskAsyncSequence {
|
||||
for await tasks in repository.allTasks.allTasksAsyncSequence {
|
||||
self.allTasks = tasks
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# iOS Project Setup Instructions
|
||||
|
||||
## Adding New Subview Files to Xcode
|
||||
|
||||
Four new Swift files containing reusable subviews have been created but need to be added to the Xcode project:
|
||||
|
||||
1. `CommonSubviews.swift` - Error views
|
||||
2. `AuthSubviews.swift` - Login/Register headers
|
||||
3. `ResidenceSubviews.swift` - Property-related views
|
||||
4. `TaskSubviews.swift` - Task-related views
|
||||
|
||||
### Steps to Add Files (30 seconds):
|
||||
|
||||
1. Open `iosApp.xcodeproj` in Xcode
|
||||
2. Right-click on the `iosApp` folder in the Project Navigator
|
||||
3. Select **"Add Files to 'iosApp'..."**
|
||||
4. Navigate to the `iosApp/iosApp/` directory
|
||||
5. Select all 4 `*Subviews.swift` files:
|
||||
- `AuthSubviews.swift`
|
||||
- `CommonSubviews.swift`
|
||||
- `ResidenceSubviews.swift`
|
||||
- `TaskSubviews.swift`
|
||||
6. Make sure **"Copy items if needed"** is UNchecked (files are already in the project)
|
||||
7. Make sure **"Add to targets: iosApp"** is checked
|
||||
8. Click **"Add"**
|
||||
|
||||
### Verify
|
||||
|
||||
Build the project (Cmd+B). All errors should be resolved.
|
||||
|
||||
### File Locations
|
||||
|
||||
All files are located in: `/Users/treyt/Desktop/code/myCrib/MyCribKMM/iosApp/iosApp/`
|
||||
|
||||
```
|
||||
iosApp/
|
||||
└── iosApp/
|
||||
├── AuthSubviews.swift ← Add this
|
||||
├── CommonSubviews.swift ← Add this
|
||||
├── ResidenceSubviews.swift ← Add this
|
||||
├── TaskSubviews.swift ← Add this
|
||||
├── Login/
|
||||
├── Register/
|
||||
├── Residence/
|
||||
└── Task/
|
||||
```
|
||||
|
||||
That's it! The project should now compile without errors.
|
||||
@@ -69,6 +69,10 @@ extension Kotlinx_coroutines_coreStateFlow {
|
||||
return asAsyncSequence()
|
||||
}
|
||||
|
||||
var allTasksAsyncSequence: AsyncStream<[CustomTask]> {
|
||||
return asAsyncSequence()
|
||||
}
|
||||
|
||||
var boolAsyncSequence: AsyncStream<Bool> {
|
||||
return asAsyncSequence()
|
||||
}
|
||||
|
||||
10
iosApp/iosApp/iosApp.entitlements
Normal file
10
iosApp/iosApp/iosApp.entitlements
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.com.tt.mycrib.MyCrib</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user