Skip to content

Commit

Permalink
fix: Fix Shimmer+ViewExt condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Apr 13, 2024
1 parent 0058806 commit 4ad0e11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/DDS/Component/Shimmer/Extension/Shimmer+ViewExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ public extension View {

@ViewBuilder
func shimmer(_ condition: Bool = true) -> some View {
DodamShimmer { self }
if condition {
DodamShimmer { self }
} else {
self
}
}
}

0 comments on commit 4ad0e11

Please sign in to comment.