I have a UITableViewController that doesn\'t display any sections if there is nothing to show. I\'ve added a label to indicate to the user that there is nothing to display w
In Swift 5 it looks like this:
label.translatesAutoresizingMaskIntoConstraints = false label.centerXAnchor.constraint(equalTo: vc.view.centerXAnchor).isActive = true label.centerYAnchor.constraint(equalTo: vc.view.centerYAnchor).isActive = true