This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TAY-44]: Starts on UICollectionView conformance
- Loading branch information
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// CollectionView.swift | ||
// TaylorSource | ||
// | ||
// Created by Daniel Thorpe on 11/04/2016. | ||
// Copyright © 2016 Daniel Thorpe. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
/** | ||
Providers which can create (and provide) a UICollectionViewDataSource | ||
object should conform to this protocol. | ||
*/ | ||
public protocol UICollectionViewDataSourceProvider { | ||
|
||
/// - returns: an object which conforms to UICollectionViewDataSource | ||
var collectionViewDataSource: UICollectionViewDataSource { get } | ||
} | ||
|
||
public protocol CollectionViewType: CellBasedViewType { } | ||
|
||
extension UICollectionView: CollectionViewType { | ||
public typealias CellIndex = NSIndexPath | ||
public typealias SupplementaryIndex = NSIndexPath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters