 <p>This has been tested and works: </p> <pre><code>override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) tableView.contentSize.height = 2000 } </code></pre> <p>Example: <a href="https://i.stack.imgur.com/UO6sk.gif" rel="nofollow"><img src="https://i.stack.imgur.com/UO6sk.gif" alt="enter image description here"></a></p>