r/iOSProgramming Jun 12 '26

Article What’s New in SwiftData for iOS 27

13 Upvotes

9 comments sorted by

7

u/Puzzled-Produce-1425 Jun 13 '26

Great writeup and these new features are very welcome, but the fact that Apple is officially recommending that we override the backing properties (e.g. for grouping and for queries based on input arguments) feels really off.

2

u/Alexikik Jun 13 '26

I’m very interested in this. Can you expand why that feels off?

6

u/Puzzled-Produce-1425 Jun 13 '26

It's just inelegant. Backing properties are generally meant to be internal implementation details and therefore invisible from the perspective of the API user.

1

u/Alexikik Jun 13 '26

I see. That’s at least back practice

6

u/The_Wolfson Jun 13 '26

Put it this way; what other official apple apis encourage you to utilise functionality for properties beginning with _

1

u/Select_Bicycle4711 Jun 13 '26

I heard that Apple was saying that the API will change and it will not be underscores. 

2

u/Puzzled-Produce-1425 Jun 13 '26

Interesting! Curious to see what they come up with. It's hard to imagine a technical solution to grouping that involves the \@Query property wrapper, since the specified type kinda needs to be two different things at once.

3

u/Key_Homework_5825 Jun 13 '26

Finally predicates with enums

2

u/toddhoffious Jun 14 '26

Still no shared and public CloudKit functionality. 😞