forked from shadowfacts/Tusker
Fix attachment blur view corners not being curved
This commit is contained in:
parent
d2c28ada7f
commit
f0ec372f50
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue