Post

Replies

Boosts

Views

Activity

Reply to Sectioned fetching: beyond String keyPaths?
Thank you for clarifying that only string key paths are supported for list sectioning. I’m sure being able to do this “out of the box” will be very useful. Regarding creating sections based on whether trips are “past or upcoming”, your suggestion that I use two different queries helped me think of the problem from a different angle. I watched Matthew’s Code-along and… Eureka! The code snippet at 16:27 - “Fetch achieved and upcoming goals” was particularly relevant and I was able to implement it 😃 Thank you for your input, much appreciated!
Topic: SwiftData SubTopic:
SwiftData Q&A
1d
Reply to Sectioned fetching: beyond String keyPaths?
Thank you for clarifying that only string key paths are supported for list sectioning. I’m sure being able to do this “out of the box” will be very useful. Regarding creating sections based on whether trips are “past or upcoming”, your suggestion that I use two different queries helped me think of the problem from a different angle. I watched Matthew’s Code-along and… Eureka! The code snippet at 16:27 - “Fetch achieved and upcoming goals” was particularly relevant and I was able to implement it 😃 Thank you for your input, much appreciated!
Topic: SwiftData SubTopic:
SwiftData Q&A
Replies
Boosts
Views
Activity
1d