Fix image layout issue in timeline.

This commit is contained in:
Maurice Parker
2019-04-22 12:39:34 -05:00
parent cd9a48d4b5
commit f2e1d09a0c
3 changed files with 23 additions and 1 deletions

View File

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