- Update all Kotlin API models to match Go API response structures - Fix Swift type aliases (TaskDetail→TaskResponse, Residence→ResidenceResponse, etc.) - Update TaskCompletionCreateRequest to simplified Go API format (taskId, notes, actualCost, photoUrl) - Fix optional handling for frequency, priority, category, status in task models - Replace isPrimaryOwner with ownerId comparison against current user - Update ResidenceUsersResponse to use owner.id instead of ownerId - Fix non-optional String fields to use isEmpty checks instead of optional binding - Add type aliases for backwards compatibility in Kotlin models 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
258 B
Swift
13 lines
258 B
Swift
import SwiftUI
|
|
import ComposeApp
|
|
|
|
struct EditResidenceView: View {
|
|
let residence: ResidenceResponse
|
|
@Binding var isPresented: Bool
|
|
|
|
var body: some View {
|
|
ResidenceFormView(existingResidence: residence, isPresented: $isPresented)
|
|
}
|
|
}
|
|
|