Skip to content

Commit 2ed7283

Browse files
mrsnow-gitDaltron
authored andcommitted
Fix zero blur radius usage for Floating Notifications banners (#244)
1 parent 4530406 commit 2ed7283

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NotificationBanner/Classes/FloatingNotificationBanner.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ private extension FloatingNotificationBanner {
133133
cornerRadius: CGFloat = 0,
134134
offset: UIOffset = .zero,
135135
edgeInsets: UIEdgeInsets? = nil) {
136-
guard blurRadius > 0 else { return }
136+
137+
guard blurRadius >= 0 else { return }
138+
137139
contentView.layer.shadowColor = color.cgColor
138140
contentView.layer.shadowOpacity = Float(opacity)
139141
contentView.layer.shadowRadius = blurRadius

0 commit comments

Comments
 (0)