Perf: remove unnecessary shadows and mask views
This commit is contained in:
@@ -47,6 +47,9 @@ class ToolbarView: UIView
|
||||
override func layoutSubviews()
|
||||
{
|
||||
super.layoutSubviews()
|
||||
|
||||
let shadowPath = UIBezierPath(rect: bounds)
|
||||
layer.shadowPath = shadowPath.cgPath
|
||||
|
||||
backgroundView.frame = bounds
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ class URLBar: ReliefButton
|
||||
super.init()
|
||||
|
||||
backgroundColor = .clear
|
||||
constrainedToSquare = false
|
||||
|
||||
backgroundView.addSubview(progressIndicatorView)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user