
(1) ViewController.swiftimport UIKitimport SnapKitimport RxSwiftimport RxCocoaclass ViewController: UIViewController { private lazy var carouselCollectionView: UICollectionView = { let layout = UICollectionViewFlowLayout() layout.scrollDirection = .horizontal // Set horizontal scroll direction layout.minimumLineSpacing = 0 // Set minimum spacing between cells layou..