Skip to content

Instantly share code, notes, and snippets.

@aheze
Created February 10, 2020 19:22
Show Gist options
  • Save aheze/b06278b7de5f8d26be17669578360fbc to your computer and use it in GitHub Desktop.
Save aheze/b06278b7de5f8d26be17669578360fbc to your computer and use it in GitHub Desktop.
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