Revert "Route setDelegate: to setAsyncDelegate: (#3007)" (#3023)

This reverts commit 5c8818d107.
This commit is contained in:
Adlai Holler
2017-02-13 10:38:19 -08:00
committed by GitHub
parent ec59c3161a
commit 0badff651a
5 changed files with 17 additions and 16 deletions

View File

@@ -228,6 +228,17 @@ class MosaicCollectionViewLayoutInspector: NSObject, ASCollectionViewLayoutInspe
return ASSizeRange.init(min: CGSize.zero, max: layout._headerSizeForSection(section: atIndexPath.section))
}
/**
* Asks the inspector for the number of supplementary sections in the collection view for the given kind.
*/
func collectionView(_ collectionView: ASCollectionView, numberOfSectionsForSupplementaryNodeOfKind kind: String) -> UInt {
if (kind == UICollectionElementKindSectionHeader) {
return UInt((collectionView.dataSource?.numberOfSections!(in: collectionView))!)
} else {
return 0
}
}
/**
* Asks the inspector for the number of supplementary views for the given kind in the specified section.
*/
@@ -240,6 +251,6 @@ class MosaicCollectionViewLayoutInspector: NSObject, ASCollectionViewLayoutInspe
}
func scrollableDirections() -> ASScrollDirection {
return ASScrollDirectionVerticalDirections
return ASScrollDirectionVerticalDirections;
}
}