Created
July 18, 2017 21:05
-
-
Save gwennguihal/55bffee8996e6c5f1b5a572a9a54c68f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| extension TitleCollectionViewCell : CollectionCellAdaptable { | |
| func update(with adapter: CollectionAdapter) { | |
| guard let adapter = adapter as? TitleAdapter else { | |
| fatalError("TitleAdapter required") | |
| } | |
| titleLabel.attributedText = adapter.title | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment