There are two ways to create a UILabel in Swift: through Interface Builder or programmatically.
UILabel from the Object Library onto your view.main.swift197 chars6 linesIn this example, we are initializing a UILabel instance with a frame and adding it to our view as a subview. We then customize the label properties such as textAlignment and text.
gistlibby LogSnag