Controls are the bread-and-butter of iOS apps. There are many provided in UIKit but this tutorial shows you how to make a custom control in Swift.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/76433/how-to-make-a-custom-control-swift