@IBDesignable public final class DSIconButton: UIButton
An Anatomy-styled, icon-only push button element that displays a standard icon (DSIconRenderingType) as well as all normal UIButton functionality. No title text is allowed.
For storyboards, add a UIButton to your view and change the class name to DSIconButton. BE SURE THE TYPE IS SET TO CUSTOM otherwise some colors won't show correctly.
If the button performs an asynchronous operation, you can present a spinning indicator by setting isLoading to true. This will also disable the button.
Initialize and set properties as needed.
let button = DSIconButton(icon: .gear)