Pull-to-refresh has become a common user interface paradigm in the mobile space. It made its introduction several years ago in Tweetie, a very popular Twitter client created by Loren Brichter.
Earlier this week, I showed you how easy it is to work with bitmasks using Swift and the Swift standard library. In today’s tutorial, I’d like to show you how to create a custom control that uses the Schedule structure we created earlier. This is what the result will look like when we’re finished.
Even though UICollectionView is incredibly flexible and versatile, trivial things are sometimes difficult to accomplish. UITableView, on the other hand, has more configuration options, but it is harder to customize. Sticky section headers, for example, are built into table views. Adding them to a collection view requires a bit of extra work.