Skip to content

Instantly share code, notes, and snippets.

@ashfurrow
Created October 8, 2014 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashfurrow/50ed48707062bf50683b to your computer and use it in GitHub Desktop.
Save ashfurrow/50ed48707062bf50683b to your computer and use it in GitHub Desktop.
eff yeah
private class InfoView: UIView {
override func intrinsicContentSize() -> CGSize {
let height = subviews.map{ $0.intrinsicContentSize().height }.reduce(0, combine: +)
return CGSize(width: UIViewNoIntrinsicMetric, height: height)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment