Post

Replies

Boosts

Views

Activity

Comment on Converting Swift to JSON
Thanks @Claude31, Could you help me input it correctly into the order constant? You'll see at the end of it I have person_details but can't get it to go into the overall household object as from my full Json object in the question posted. Thanks! & I did define some more coding keys. struct Order: Encodable {     let household: Eligibility     let personDetails: PersonDetails } let order = Order(household: Eligibility(residence: "PA", hhmembers: 1, receivingBen: [], unhoused: false, utilityType: ["Peco"], residenceType: "other", propertyTax: false, homeRepairs: false, fileLastTax: false, heatRepairs: false, receivingMax: ["cip": false], person_details: [age: 18]))
Topic: App & System Services SubTopic: General Tags:
Mar ’22
Comment on Insert Image into RoundedRectangle()
Thank you!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Remove Image in ParentView once TextField in ChildView has a value
Thank you @Claude31
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Using a variable from a Function
Hi there! Thank you for the link, It may not be what I'm looking for but I updated the question with more specifics. Please let me know if I'm not explaining it well enough.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Using a variable from a Function
Hey @Claude31, I've put an extra tidbit below for you to check out. Thank you!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Make if/else statements work properly in Presented Sheet
Hey @Claude31, Thanks for responding! see my below message. Unfortunately, unable to edit my original post with your good suggestions. Thanks!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Converting Swift to JSON
Thanks @Claude31, Could you help me input it correctly into the order constant? You'll see at the end of it I have person_details but can't get it to go into the overall household object as from my full Json object in the question posted. Thanks! & I did define some more coding keys. struct Order: Encodable {     let household: Eligibility     let personDetails: PersonDetails } let order = Order(household: Eligibility(residence: "PA", hhmembers: 1, receivingBen: [], unhoused: false, utilityType: ["Peco"], residenceType: "other", propertyTax: false, homeRepairs: false, fileLastTax: false, heatRepairs: false, receivingMax: ["cip": false], person_details: [age: 18]))
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Converting Swift to JSON
@Claude31. The person_details technically is under the household object, so it's confusing to me how to put this in the let order = constant.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Connect @State variables to a Codable struct
Maybe use @Published instead of @State?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Saving User Data to Array inside Struct
Thanks @Claude31, would it more like this then? $eligBase.household.personDetails[6].disabled. By getting the item in the array? I'm getting an error when doing this: Fatal error: Index out of range
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22