Skip to content

Commit b57cf38

Browse files
authored
Merge pull request #12 from TimOliver/fix-clipping
Ensure the outer view, and content view aren’t clipped
2 parents 0cb8511 + 4017a6d commit b57cf38

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

BlurUIKit/VariableBlurView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public class VariableBlurView: UIVisualEffectView {
135135
private func commonInit() {
136136
// Disable interaction so touches will pass through it
137137
isUserInteractionEnabled = false
138+
clipsToBounds = false
138139
}
139140

140141
// MARK: - View Lifecycle
@@ -198,6 +199,7 @@ public class VariableBlurView: UIVisualEffectView {
198199
let imageView = UIImageView()
199200
imageView.tintColor = dimmingTintColor
200201
contentView.addSubview(imageView)
202+
contentView.clipsToBounds = false
201203

202204
dimmingView = imageView
203205
setNeedsUpdate()

0 commit comments

Comments
 (0)