Post

Replies

Boosts

Views

Activity

Reply to Simple way to load json remotely from server?
I don't know of a specific tutorial but basically what you want to do is to define a model with these properties that is "Codable" (you can look this up - it will help you move back and forth between instances of the model and the JSON data) and then use URLSession to get data from the network and tell JSONDecoder to use your codable model to decode the data. The model specification and networking code is probably ~20 lines of code total, maybe less. Then you can use it with SwiftUI or in any other way needed.
Topic: App & System Services SubTopic: General Tags:
Jun ’22
Reply to How to update the CloudKit schema after the app has been released to the AppStore
I only run it when I know I've changed something. As far as technique, you need to be really thoughtful with your CloudKit schema since you are limited in what can change in production. Go watch the session from this year, Evolve your Core Data schema, for some suggestions and thoughts.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Simple way to load json remotely from server?
I don't know of a specific tutorial but basically what you want to do is to define a model with these properties that is "Codable" (you can look this up - it will help you move back and forth between instances of the model and the JSON data) and then use URLSession to get data from the network and tell JSONDecoder to use your codable model to decode the data. The model specification and networking code is probably ~20 lines of code total, maybe less. Then you can use it with SwiftUI or in any other way needed.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Weird Errors When Adding a Core Data Entity
From these errors, the compiler seems very confused. Probably need to see the call site(s) to give any suggestions.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Using Table Selection to Populate Other View
Yeah, I actually opened a DTS case for this and while it hasn't been updated in awhile, I basically got the vibe that there wasn't totally complete API support for what I wanted to do.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21