I need to set constraints on the title text of my application such that the font size of the text is relative to that of the superview. This would help the text to vary with the screen size.
Found how to do so.
So what I did was:
@IBOutlet weak var iXyloTitle: UILabel!
iXyloTitle.font = iXyloTitle.font.withSize(self.view.frame.height * 0.031)