Fix off center timeline titles
This commit is contained in:
parent
f3a939b49d
commit
5dfb4f6488
|
@ -472,8 +472,6 @@ private extension MasterTimelineViewController {
|
||||||
titleView.label.text = coordinator.timelineName
|
titleView.label.text = coordinator.timelineName
|
||||||
|
|
||||||
if coordinator.timelineFetcher is Feed {
|
if coordinator.timelineFetcher is Feed {
|
||||||
let width = titleView.sizeThatFits(CGSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude)).width
|
|
||||||
titleView.widthAnchor.constraint(equalToConstant: width).isActive = true
|
|
||||||
titleView.heightAnchor.constraint(equalToConstant: 44.0).isActive = true
|
titleView.heightAnchor.constraint(equalToConstant: 44.0).isActive = true
|
||||||
let tap = UITapGestureRecognizer(target: self, action:#selector(showFeedInspector(_:)))
|
let tap = UITapGestureRecognizer(target: self, action:#selector(showFeedInspector(_:)))
|
||||||
titleView.addGestureRecognizer(tap)
|
titleView.addGestureRecognizer(tap)
|
||||||
|
|
Loading…
Reference in New Issue