Prevent auto layout from messing with our labels even though we told it not to.

This commit is contained in:
Maurice Parker
2019-04-22 11:49:22 -05:00
parent 5b75add585
commit cd9a48d4b5
4 changed files with 25 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
//
// MasterTimelineLabel.swift
// NetNewsWire-iOS
//
// Created by Maurice Parker on 4/22/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import UIKit
class NonIntrinsicLabel: UILabel {
// Prevent autolayout from messing around with our frame settings
override var intrinsicContentSize: CGSize {
return CGSize(width: UIView.noIntrinsicMetric, height: UIView.noIntrinsicMetric)
}
}