Post

Replies

Boosts

Views

Activity

Reply to Changing the live activity without push notification
No, you're not missing anything. This came up several times in the Slack-based Tech Talk chats too... Your choices are push notifications or background tasks. If you use background tasks you have very very little control over when they run. I eventually gave up and setup a very basic push system to do what I wanted and that works great. Basic push is pretty simple to do - I'd strongly recommend going down that road even if it's something where you really shouldn't need it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
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 iPadOS 18.2 genmoji, image wand, image playground
The first seed has only been out for a week so it's not possible that you've been waiting that long. Check the Feedback app - it has a note posted about testing those features stating that users will be added over the coming weeks (i.e. multiple).
Replies
Boosts
Views
Activity
Oct ’24
Reply to Swift Data Predicate Evaluation Crashes in Release Build When Generics Used
Thanks. This has been filed as FB15340069.
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftData: SwiftData.PersistentIdentifierImplementation) was remapped to a temporary identifier during save
Interesting... I thought that was just supposed to do an UPSERT (which it seems to do), though I thought that was by design and not something that should justify a warning. Agree that it seems to work fine despite the scary error message.
Replies
Boosts
Views
Activity
Sep ’24
Reply to App is crashing when using "withCheckedContinuation" in Xcode 16 beta 5
Same. It seems broken, I've been seeing a lot of comments from others so it appears widespread.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Can't release builds via MacOS 15 beta
As the other comment says, you can't... you can also try Xcode Cloud. Your developer subscription includes some hours. That's what I've been doing, working great.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Importing Data into SwiftData in the Background Using ModelActor and @Query
There's a note on my FB that a fix has been identified for a future release - hopefully!
Replies
Boosts
Views
Activity
Aug ’24
Reply to Importing Data into SwiftData in the Background Using ModelActor and @Query
iOS 18 issue submitted as FB14240514
Replies
Boosts
Views
Activity
Jul ’24
Reply to CSUserQuery Generating Model Load Failure - No Results
Same with seed 3.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to CSUserQuery Generating Model Load Failure - No Results
Still seeing this with seed 2. Anyone got this to work?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Changing the live activity without push notification
No, you're not missing anything. This came up several times in the Slack-based Tech Talk chats too... Your choices are push notifications or background tasks. If you use background tasks you have very very little control over when they run. I eventually gave up and setup a very basic push system to do what I wanted and that works great. Basic push is pretty simple to do - I'd strongly recommend going down that road even if it's something where you really shouldn't need it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to App Intents not appear in Shortcuts App
I had this issue and for my, the fix was to use the builder syntax in the AppShortcutsProvider, not returning an array. https://gist.github.com/HunterHillegas/92839a14c2b24572f6ff2aca0460f3c5
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to ShareLink + Preview equals crash
I'm seeing the same thing in my code.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’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