Created
July 4, 2025 11:13
-
-
Save jacobsapps/7ae050efdca50cfde801be28894e9911 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| struct CardGridView: View { | |
| @Query(sort: \CardEntity.createdAt) private var cardEntities: [CardEntity] | |
| var body: some View { | |
| NavigationStack { | |
| ScrollView { | |
| LazyVGrid { | |
| ForEach(cardEntities.compactMap { $0.toCard() }) { | |
| CardView(card: $0) | |
| } | |
| } | |
| .padding() | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment