iOS Code Testing by Abhishek Mishra

iOS Code Testing by Abhishek Mishra

Author:Abhishek Mishra
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


func setupCollectionViewCellToUseMaxWidth() -> Void {

if let collectionView = self.collectionView,

let collectionViewLayout = collectionView.collectionViewLayout as? UICollectionViewFlowLayout {

collectionViewLayout.itemSize = CGSize(width: collectionView.bounds.width, height: collectionView.bounds.width * 0.6)

}

}

}

Listing 6-11.CollectionViewController.swift

Binding the CollectionViewCell Class to the View Model

Table 6-9 lists the methods in the CollectionViewCell class along with their associated view model bindings.Table 6-9.Collection view cell and view model bindings



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.