Created
February 17, 2017 15:51
-
-
Save danielgarbien/bc27cc4e0b36040458222ad0f0ac8b39 to your computer and use it in GitHub Desktop.
This file contains 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
import UIKit | |
class FullContentIntrinsicSizeTableView: UITableView { | |
override var contentSize: CGSize { | |
didSet { | |
if contentSize != oldValue { | |
invalidateIntrinsicContentSize() | |
} | |
} | |
} | |
override var intrinsicContentSize: CGSize { | |
return contentSize | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment