Example Custom Control These are base files to start building a custom controls, Just import the files in your project CustomControl.swift MainView.swift MainView.xib than add a UIView to your storyboard and set the class, in the inspector, as CustomControl