I\'ve got an UICollectionView with an UICollectionViewFlowLayout, and i want to calculate its content size (for return in intrinsicContentSiz
UICollectionView
UICollectionViewFlowLayout
intrinsicContentSiz
This answer is based on @Er. Vihar's answer. You can easily implement the solution by using RxSwift
collectionView.rx.observe(CGSize.self , "contentSize").subscribe(onNext: { (size) in print("sizer \(size)") }).disposed(by: rx.disposeBag)