Category Archives for UIButton

UIButton Subclass And Initialization For Storyboard or Code

Let’s look at how to design a subclass of UIButton with Swift, with initializers such that it can be used in a storyboard, or programmatically in code. We’ll discuss initialization requirements,

Continue reading

iOS Share Icon On UIButton

This post provides working examples of how to implement the iOS share icon, more formally known as the Action button icon, on a regular UIButton. You might have come across the fact that the iOS Action

Continue reading

UIButton With Right Arrow Disclosure Indicator

This post demonstrates a UIButton with a right arrow disclosure indicator, and includes a demo app. Although this user interface paradigm is traditionally something you see for a UITableView, there are

Continue reading

UIActivityIndicatorView With Custom Text In Swift

Are you looking for an activity indicator that is more than just a spinning gear? Would you like to include a text message while the indicator is displayed? We’ve all encountered the dreaded hourglass

Continue reading

Swift Round UIButton Subclass IBDesignable in Interface Builder

This post walks through an easy subclass of UIButton for rendering round buttons. The implementation uses IBDesignable and IBInspectable so that the button can be fully configured in Interface Builder,

Continue reading

Circular UIButton With Swift

This is a short post to illustrate one way you can create a circular UIButton in Swift. This is analogous to the iPhone call buttons. I call it circular because “round” can imply simply rounded

Continue reading