Post

Replies

Boosts

Views

Activity

Reply to iOS26 Liquid Glass icon + use old icon on iOS18
You can pass --enable-icon-stack-fallback-generation=disabled as a flag to the asset catalog compiler. Go to project -> Your target -> Build Settings -> Search for "Asset Catalog" -> Add the mentioned flag in Asset Catalog Other Flags. In this case versions prior to 26 will continue to use the previous app icons. However for my project this caused problems when uploading to App Store Connect apparently due to missing png icon files. This has never been a problem before and the app seems to be displayed with the correct app icons at all times. I am also using alternative app icons. I am yet to further investigate this to file a good feedback report.
Topic: UI Frameworks SubTopic: General Tags:
1w
Reply to Strange Live Activity Occurrence Behavior
I finally figured this out. It's really weird but I found the issue. In the initializer of the TimelineProvider struct of the UpNextWidget(), I created a SwiftData modelContainer. Once I remove that from the initializer to the function that will need the ModelContext, it works reliably as expected. Obviously this can not be intended behavior. I filed a feedback with a sample project based on the template for Live Activities that illustrates the problem. FB17655658
May ’25
Reply to MusicKit: How to search for a single song by ID
You need to infer a type manually and tell which property should match yours. MusicCatalogResourceRequest<Song>(matching: \.id, equalTo: song.id.rawValue) This is what you are looking for. Apart from that I strongly advise you to switch using IRSC (or UPC for albums) instead of the song id. The song id (or album id) can change at any time. Read the explanation here
Topic: Media Technologies SubTopic: Audio Tags:
Sep ’24
Reply to SwiftData serious bug with relationships and CloudKit in iOS 18.0 (Xcode 16 Beta)
Just a quick idea: Can you access that relationship programmatically? So if you add a button that tries to print that relationship, does that work? Currently there is a bug that @Query does not update the view after an iCloud Sync. I filed a bug report for that. FB14619787 If you can indeed access that relationship you might be able to work around that by using this package (https://github.com/ggruen/CloudKitSyncMonitor) that can update your view whenever the iCloud sync status changes.
Sep ’24
Reply to SwiftData @Model does not conform to the 'Sendable' protocol; thi
@SpaceMan You should use this instead: public func fetch<T>(_ descriptor: @Sendable () -> FetchDescriptor<T>) throws -> [PersistentIdentifier] { return try self.modelContext.fetchIdentifiers(descriptor()) } and you use that like: guard let loaded = try? await dataHandler.handler.fetch( { FetchDescriptor<MyModel>(predicate: #Predicate { model in model.somebool }, sortBy: [SortDescriptor(\.someKeypath)]) }) else { return }
Aug ’24