Fix attachment blur view corners not being curved

This commit is contained in:
Shadowfacts 2024-03-31 20:44:13 -04:00
parent d2c28ada7f
commit f0ec372f50
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class AttachmentsContainerView: UIView {
private func commonInit() {
self.isUserInteractionEnabled = true
self.layer.cornerRadius = 5
self.layer.cornerCurve = .continuous
createBlurView()
createHideButton()
@ -323,6 +324,9 @@ class AttachmentsContainerView: UIView {
let blur = UIBlurEffect(style: .dark)
let blurView = UIVisualEffectView(effect: blur)
blurView.alpha = 0
blurView.layer.cornerRadius = 5
blurView.layer.cornerCurve = .continuous
blurView.layer.masksToBounds = true
blurView.translatesAutoresizingMaskIntoConstraints = false
fillView(blurView)
let vibrancyView = UIVisualEffectView(effect: UIVibrancyEffect(blurEffect: blur, style: .label))