Is there a way to replace the method
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
from the UICollectionViewDelegateFlowLayout
protocol by something reactive using RxSwift?