Created
July 4, 2025 11:26
-
-
Save jacobsapps/803011eb03f65090034ea10fb51911d6 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
| extension CardEntity { | |
| func toCard() -> Card? { | |
| guard let smallImage = downscaleImageData(imageData) else { return nil } | |
| // ... | |
| return Card(id: id, image: smallImage, stats: cardStats, createdAt: createdAt) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment