Select Page

How to Create a Custom Control Using a Bitmask

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.

How to Add Sticky Section Headers to a Collection View

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.