Welcome to a fun and easy introduction to app development with SwiftUI! This tutorial will…
How to create Self-Sizing Table View Cells (Swift)
In iOS, you can use Auto Layout to define the height of a table view cell. In this tutorial, we will show you how to make your Table View Cells self-sizing.
Firstly, create a simple TableView, that belongs to your ViewController.
Create custom TableViewCell class named: QuoteTableViewCell. Open ViewController in a StoryBoard and add CellID as a tableViewCell Identifier.
Add two labels named quoteLabel and authorLabel to your custom Cell. Add constraints to them. Setup IBOutlets for these labels in QuoteTableViewCell class.