Category Archives for Swift

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

Inline UIDatePicker In Swift With UIViewController

This tutorial walks through implementing two inline UIDatePicker controls for selecting date/time values, and is written in Swift. There are examples out there that demonstrate an inline UIDatePicker.

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

Easy And Flexible Forms In iOS With Interface Builder

This post looks at how to easily design future-proof data entry forms in iOS with Interface Builder. It includes a demo app written in Swift. There are some libraries written to help with creating forms,

Continue reading

UINavigationController Inside UITabBarController With Storyboard

A very common user interface pattern is to use a UITabBarController as the root view controller for an app, and then embed UINavigationControllers in tabs that require navigation. In iOS apps, this is

Continue reading

Copy Xib To Storyboard

This post describes how you can migrate (or copy) a Xib file into a Storyboard and retain all the components and constraints. In a previous post, I demonstrated a strategy and demo app to migrate an

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

UISlider With Fixed Increments For Filtering in Swift

This post illustrates a solution for using a UISlider with fixed increments to provide a filtering mechanism in Swift, and comes complete with a sample app. If you want to jump to the app, the link is

Continue reading
1 2 3 5