Visual tweaks

This commit is contained in:
James Magahern
2020-07-29 19:24:05 -07:00
parent c96cafd1ca
commit bba9efbbb6
4 changed files with 52 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ class TitlebarView: UIView
super.layoutSubviews()
backgroundImageView.frame = bounds
titleLabelView.frame = bounds.avoiding(verticalInsets: safeAreaInsets).insetBy(dx: 8.0, dy: 0.0)
titleLabelView.frame = bounds.avoiding(verticalInsets: safeAreaInsets).insetBy(dx: 8.0 + layoutMargins.left, dy: 0.0)
if let image = backgroundImageView.image, image.size == bounds.size {
// No op