Removing hard coded width.

This commit is contained in:
Khan, Arshad 2020-03-13 19:28:55 +05:30
parent 73230fa341
commit 022f76b8b2

View File

@ -10,7 +10,7 @@ import UIKit
open class Carousel: View {
public let collectionView = UICollectionView(frame: CGRect(x: 0, y: 0, width: MVMCoreUISplitViewController.getDetailViewWidth(), height: 300), collectionViewLayout: UICollectionViewFlowLayout())
public let collectionView = UICollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
/// The current index of the collection view. Includes dummy cells when looping.
public var currentIndex = 0