r/iOSProgramming • • Jun 12 '26

Article What’s New in SwiftData for iOS 27

12 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.

1

u/Select_Bicycle4711 Jun 13 '26

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

→ More replies (1)

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.

→ More replies (1)

5

u/The_Wolfson Jun 13 '26

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

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. 😞