Skip to content

Commit

Permalink
Fix shadow of the dialog is overlapping with ZStack
Browse files Browse the repository at this point in the history
  • Loading branch information
MalekKamel committed Nov 28, 2022
1 parent b3d7039 commit eaa71c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct Dialog: ViewModifier {
}
.opacity(animate ? 1.0 : 0.0)
dialogContent()?
.shadow(color: .black.opacity(0.2), radius: 20)
.background(Color.clear.shadow(color: Color(UIColor.gray), radius: 20))
.scaleEffect(scaleAmount)
.animation(Animation.easeInOut(duration: 0.2), value: scaleAmount)
}
Expand Down

0 comments on commit eaa71c5

Please sign in to comment.