Created
February 10, 2020 19:22
-
-
Save aheze/b06278b7de5f8d26be17669578360fbc 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
let item = provider.items[indexPath.row] as! MyViewModel | |
let textHeight = item.title.count | |
let extensionHeight = Double(textHeight) * 0.70 | |
return AdaptiveCollectionConfig.cellBaseHeight + CGFloat(textHeight) + CGFloat(extensionHeight) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment