//
//  SelfSizingCollectionView.swift
//  MobileFirstFramework
//
//  Created by Dhamodaram Nandi on 24/12/20.
//  Copyright © 2020 Verizon Wireless. All rights reserved.
//
import MVMCoreUI

public class SelfSizingCollectionView: CollectionView {
    
    override open var intrinsicContentSize: CGSize {
        return contentSize
    }
    
    override open var contentSize: CGSize {
        didSet {
            guard bounds.size.height != contentSize.height else { return }
            frame.size.height = contentSize.height
            invalidateIntrinsicContentSize()
        }
    }
}
