Last active
October 5, 2023 05:36
-
-
Save beechtom/e1ba3164ecd741d7fcd71ab69c877ca7 to your computer and use it in GitHub Desktop.
SectionedResults-02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftData | |
struct SectionedResults<SectionIdentifier, Result>: RandomAccessCollection | |
where SectionIdentifier: Hashable, Result: PersistentModel { | |
struct Section: RandomAccessCollection, Identifiable { | |
typealias ID = SectionIdentifier | |
var id: ID | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment