Post

Replies

Boosts

Views

Activity

Reply to Xcode Build Failure
Hi everybody, May I ask ?? if anybody knows how I could get official Apple technical support on a mobile app I have been trying to develop please. I am willing to go in person to Cupertino for direct contact, if necessary. Basically, I am trying to develop an indoor/outdoor navigation app with following components: front-end consumer: submits online order via their smart phone. middle-end user: retrieves items from storage and delivers items to consumers. back-end user: organizes and maintains inventory. I could provide more details upon further request. My direct contact is: 208-371-3769. Thank you, Have a nice day, TH
Apr ’25
Reply to Xcode Build Failure
@Claude31: Sorry about image orientation, looks like a Mac or Web thing ... either way, I don't know what happened during upload. I will post code, instead of or possibly along with screenshot. I will post full error message, if one shows up. Variables are defined, as follows: struct RecommendationEntity: Decodable, Identifiable, Hashable { var productId: Int64 } enum ViewConstants { static let LAYOUT_DUMMY_ID_PRODUCT = 1 }
Apr ’25
Reply to Xcode Build Failure
@darkpaw: I have included snippet of my code below as reference. The 'width' parameter can be changed later ... However, same error would still show up: "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" ... struct ViewShelter: View { // TH: helps safely update UI. @State private var rowEven: Bool = true @State private var pathBlocked: Bool = true @State private var borderColorBackEnd: Color = Color.black @State private var borderColorBackEndOperation: Color = Color.black var body: some View { VStack (alignment: .leading){ ForEach(0...(ViewConstants.TARGET_STRING_BACK_0_DIMENSION-1), id:\.self) { row in if let row_x = shelterViewModel.getShelter(row: row) as [RecommendationEntity]? { if let row_x_count = row_x.count as Int? { if row_x_count > 0 { let row_x_columns = Array(0...row_x_count-1) GeometryReader { geometry in HStack(alignment: .center) { ForEach(row_x_columns, id:\.self){ column in self.rowEven = (row%2==0) self.pathBlocked = (shelterViewModel.getShelter(row: row, column: column).productId == ViewConstants.LAYOUT_DUMMY_ID_PRODUCT) self.borderColorBackEnd = (rowEven ? Color.blue : Color.orange) self.borderColorBackEndOperation = (pathBlocked ? Color.yellow : Color.green) VStack{ … } .border( (shelterViewModel.getShelterOperationFormat() != true) ? borderColorBackEnd : (locationViewModel.getLocation(row: row, column: column) == true) ? Color.red : borderColorBackEndOperation, width: self.interfaceLayout == ViewConstants.BACKEND_OPERATION ? 0.5 : 0.5 ) .onTapGesture { … } }//ForEach. }//HStack. }//GeometryReader. .frame( … ) }// if count > 0. }//if row_x_count. }//if row_x. }//ForEach. }//VStack. }//body: View.
Apr ’25