From 7c0238bdf8041552e6a109a596b76fec29706ad9 Mon Sep 17 00:00:00 2001 From: Trey t Date: Thu, 4 Dec 2025 19:03:58 -0600 Subject: [PATCH] Fix residence property values using KotlinInt/KotlinDouble incorrectly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When Kotlin types are bridged to Swift, Int? becomes KotlinInt? and Double? becomes KotlinDouble?. These wrapper types don't work correctly with String interpolation or format specifiers - need to use .intValue and .doubleValue to get native Swift types. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- iosApp/iosApp/Subviews/Residence/PropertyHeaderCard.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iosApp/iosApp/Subviews/Residence/PropertyHeaderCard.swift b/iosApp/iosApp/Subviews/Residence/PropertyHeaderCard.swift index be8558d..7618dc8 100644 --- a/iosApp/iosApp/Subviews/Residence/PropertyHeaderCard.swift +++ b/iosApp/iosApp/Subviews/Residence/PropertyHeaderCard.swift @@ -65,11 +65,11 @@ struct PropertyHeaderCard: View { Divider() HStack(spacing: 24) { - PropertyDetailItem(icon: "bed.double.fill", value: "\(bedrooms)", label: "Beds") - PropertyDetailItem(icon: "shower.fill", value: String(format: "%.1f", bathrooms), label: "Baths") + PropertyDetailItem(icon: "bed.double.fill", value: "\(bedrooms.intValue)", label: "Beds") + PropertyDetailItem(icon: "shower.fill", value: String(format: "%.1f", bathrooms.doubleValue), label: "Baths") if let sqft = residence.squareFootage { - PropertyDetailItem(icon: "square.fill", value: "\(sqft)", label: "Sq Ft") + PropertyDetailItem(icon: "square.fill", value: "\(sqft.intValue)", label: "Sq Ft") } } }