mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix image layout issue in timeline.
This commit is contained in:
18
iOS/Extensions/NonIntrinsicImageView.swift
Normal file
18
iOS/Extensions/NonIntrinsicImageView.swift
Normal 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)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,7 +19,7 @@ class MasterTimelineTableViewCell: UITableViewCell {
|
||||
private let feedNameView = MasterTimelineTableViewCell.singleLineUILabel()
|
||||
|
||||
private lazy var avatarImageView: UIImageView = {
|
||||
let imageView = UIImageView(image: AppAssets.feedImage)
|
||||
let imageView = NonIntrinsicImageView(image: AppAssets.feedImage)
|
||||
imageView.contentMode = .scaleAspectFit
|
||||
return imageView
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user