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() {
|
private func commonInit() {
|
||||||
self.isUserInteractionEnabled = true
|
self.isUserInteractionEnabled = true
|
||||||
self.layer.cornerRadius = 5
|
self.layer.cornerRadius = 5
|
||||||
|
self.layer.cornerCurve = .continuous
|
||||||
|
|
||||||
createBlurView()
|
createBlurView()
|
||||||
createHideButton()
|
createHideButton()
|
||||||
|
@ -323,6 +324,9 @@ class AttachmentsContainerView: UIView {
|
||||||
let blur = UIBlurEffect(style: .dark)
|
let blur = UIBlurEffect(style: .dark)
|
||||||
let blurView = UIVisualEffectView(effect: blur)
|
let blurView = UIVisualEffectView(effect: blur)
|
||||||
blurView.alpha = 0
|
blurView.alpha = 0
|
||||||
|
blurView.layer.cornerRadius = 5
|
||||||
|
blurView.layer.cornerCurve = .continuous
|
||||||
|
blurView.layer.masksToBounds = true
|
||||||
blurView.translatesAutoresizingMaskIntoConstraints = false
|
blurView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
fillView(blurView)
|
fillView(blurView)
|
||||||
let vibrancyView = UIVisualEffectView(effect: UIVibrancyEffect(blurEffect: blur, style: .label))
|
let vibrancyView = UIVisualEffectView(effect: UIVibrancyEffect(blurEffect: blur, style: .label))
|
||||||
|
|
Loading…
Reference in New Issue