Category Archives for Swift

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

Swift 3 UITabBarItem Font

This is a quick tip on how to customize the font for a UITabBarItem in Swift 3. Suppose you want a larger font than the default, and you’d like it to be red when selected, and black when normal.

Continue reading

UITextField Drop Down List In Swift

This post provides a working example of a UITextField Drop Down List that allows a user to type in a value, or select from a list. It is somewhat similar to a feature you see in apps such as Uber, and also

Continue reading

Objective-C To Swift Migration – Illustrated With A Demo App

Migrating an existing Objective-C project to Swift by gradually introducing Swift classes is a common strategy for legacy iOS apps, where it is typically not feasible to rewrite the entire app to take

Continue reading

Content Hugging and Compression Resistance Explained

This post takes a detailed look at Content Hugging Priority and Compression Resistance Priority. It is an interactive discussion with examples so if you can perform the steps in this post yourself, you’ll

Continue reading
1 2 3 5