In Xcode you can setup constraints for a Core Data entity with the Data Model Inspector in the Constraints area. For every constraint added via + it set the example constraint "comma,separated,properties". You can configure more than one such constraint.In the model file it looks like this:<entity>… <uniquenessConstraints> <uniquenessConstraint> <constraint value="parent"/> <constraint value="title"/> <constraint value="birthday"/> </uniquenessConstraint> <uniquenessConstraint> <constraint value="firstName"/> <constraint value="lastName"/> </uniquenessConstraint> </uniquenessConstraints></entity>Question: What it the logic? How to read this? Is it AND or OR inside a constraint? Is it AND or OR between multiple constraints?While testing i came to this conclusion:Every constraint says: All attributes in this constraint must have the same value for two ManagedObjects to matchOnly one constraint is required to match in order for two ManagedObjects to matchThis means:The attributes (constraint values) must all match per constraint (AND)At least one constraint must match (OR)Or with an example: Two ManagedObjects would match, if they have (the same parent AND title AND birthday) OR (the same firstName AND lastName).Is this correct?In this developer video https://developer.apple.com/videos/play/wwdc2015/220/?time=821they're importing recipe data from various sources and configure one constraint to avoid duplicates: "source,externlID". This looks like source and externlID must match both (AND) to identify a duplicate. This would support my interpretation for constraints above.
Post
Replies
Boosts
Views
Activity
Since tvOS 14.0.1+ i see a black screen (with a time bar at the bottom) when playing an audio stream. From tvOS 10 to tvOS 14.0 it was showing the image i provided with code like this
player = new Player();
player.playlist = new Playlist();
audio = new MediaItem('audio', stream);
audio.title = title;
audio.artworkImageURL = artwork;
audio.subtitle = subtitle;
audio.description = description;
player.playlist.push(audio);
player.play();
How can i make the image and subtitle appear again with tvOS 14.0.1 and 14.2?
The same thing happens when playing audio with this sample project:
https://developer.apple.com/documentation/tvmljs/playing_media_in_a_client-server_app
Since iOS 15 the app i develop is on many devices no longer listed in Settings > Apple-ID > iCloud. It used to be there.
The app uses iCloud Key-Value-Storage. On some devices it is listed and on some not. I did not change iCloud related things. It seems to be something with iOS 15.
Does anyone else have this problem? How can i ensure the app is listed in iCloud settings?
I use the Time Profiler in Instruments 13.3.1.
I follow the instructions of this video: developer.apple.com/wwdc19/411
At 15:34 minutes it shows the count at a code line.
For me this line does not show such a count in the highlighted line.
When i double click a line of my code in the Heaviest Stack Trace it shows my code and highlights the line of code in green but does not show the percentage. Switching to View as Value does not show a count for the line of code too.
Is this a bug or did i miss something to configure?
Do i need SwiftUI to register a listener and display StoreKit messages in iOS 16? Or can it be done without SwiftUI? Maybe just Swift or even Objective-C?
What's new with in-app purchase - WWDC22 - Videos - Apple Developer
https://developer.apple.com/wwdc22/10007
https://developer.apple.com/documentation/swiftui/environmentvalues/displaystorekitmessage/
In developer.apple.com/wwdc22/10007 it is told at 20:43 about the IAP server API:
Receipts are now a thing of the past, as these new services provide in-app data in signed JSON format, so you can easily parse it and trust that it came from the App Store server.
Does the app still get the receipt?
I ask because my app checks for the latest subscriptionExpirationDate of the receipts to determine if an active purchase is available.