Created
June 2, 2025 12:58
-
-
Save jacobsapps/c5b4c011b293a87a82b58e809a14bc3b 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
private var baseImage: some View { | |
// ... | |
.if(showEffects && card.stats.rarity == .common) { $0.noStickerEffect() } | |
.if(showEffects && (card.stats.rarity == .rare || card.stats.rarity == .ultraRare)) { $0.circularFoilEffect() } | |
.if(showEffects && card.stats.rarity == .secretRare) { $0.metallicEffect() } | |
private var cutoutLayer: some View { | |
if showEffects { | |
// ... | |
.if((card.stats.rarity == .common || card.stats.rarity == .rare)) { $0.noStickerEffect() } | |
.if(card.stats.rarity == .ultraRare) { $0.metallicEffect() } | |
.if(card.stats.rarity == .secretRare) { $0.holographicEffect() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment