Skip to content

Commit

Permalink
Update CompactGameCard.swift
Browse files Browse the repository at this point in the history
Add fade-in effect
  • Loading branch information
blackxfiied committed Jun 26, 2024
1 parent 347c001 commit 97ad08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mythic/Views/Unified/Modules/CompactGameCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ struct CompactGameCard: View {
.aspectRatio(1, contentMode: .fill)
.clipShape(.rect(cornerRadius: 20))
.blur(radius: 20.0)
.modifier(FadeInModifier())
case .failure:
// fallthrough
RoundedRectangle(cornerRadius: 20)
Expand Down Expand Up @@ -132,6 +133,6 @@ struct CompactGameCard: View {
}

#Preview {
CompactGameCard(game: .constant(.init(type: .epic, title: "firtbite;", wideImageURL: .init(string: "https://i.imgur.com/CZt2F4s.png"))))
CompactGameCard(game: .constant(.init(type: .epic, title: "test", wideImageURL: .init(string: "https://i.imgur.com/CZt2F4s.png"))))
.padding()
}

0 comments on commit 97ad08d

Please sign in to comment.