Extensions
The following extensions are available globally.
-
Common array extensions used in this project
See moreDeclaration
Swift
struct Array<Element> : CollectionType, MutableCollectionType, _DestructorSafeContainer
-
A popular binary search implementation
See moreDeclaration
Swift
protocol CollectionType : Indexable, SequenceType
-
Adds instantiation with the enum-ed name of an Asset Catalog image
See moreDeclaration
Swift
class UIImage : NSObject, NSSecureCoding
-
Simplifies registering & dequeuing
UICollectionViewCell
andUICollectionReusableView
classes & nibs.Sample usage:
See moreclass ImageCollectionViewCell: UICollectionViewCell {} collectionView.registerClass(ImageCollectionViewCell.self) func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { let cell: ImageCollectionViewCell = collectionView.dequeueReusableCell(forIndexPath: indexPath) // ... return cell }
Declaration
Swift
class UICollectionView : UIScrollView