//
//  ColumnNavTitleView.swift
//  GamerSky
//
//  Created by Insect on 2018/4/8.
//  Copyright © 2018年 QY. All rights reserved.
//

import UIKit

class ColumnNavTitleView: UIView, NibLoadable {

    // MARK: - IBOutlet
    @IBOutlet private weak var titleLabel: UILabel!
    @IBOutlet private weak var titleImageView: UIImageView!
    
    // MARK: - public
    public var column: ColumnList? {
        
        didSet {
            
            titleLabel.text = column?.title
            titleImageView.qy_setImage(column?.icon, placeholder: "")
        }
    }
    
    // MARK: - 适配 iOS 11
    override var intrinsicContentSize: CGSize {
        return UIView.layoutFittingExpandedSize
    }
}
