Building a calendar in Swift
In this post, I wanted to walk through an approach I used when building a calendar view in Swift for an iOS app I’m working on. The requirements were as follows: Should start from the current day, and then scroll backwards through time Each month is it’s own section, with corresponding header Days should be a selectable square cell, and we should have 3 days on each row The grid should take up as much screen real estate as possible It should be memory efficient And with any luck, it will look something like this… ...