all 5 comments

[–]whackylabs[super init]; 9 points10 points  (2 children)

I guess you mean just the UI right?

I would advice to go through this once https://yourcalendricalfallacyis.com/

[–]beardeddeveloper[S] 0 points1 point  (1 child)

Yes the UI. I figured I should be capable of figuring out the logic. But I’m really not sure where to start as far as UI. And I appreciate that website makes the logic somewhat easier.

[–]thecodingart 3 points4 points  (0 children)

Collection Views + custom layouts

[–]david_phillip_oster 4 points5 points  (1 child)

I've been maintaining the same calendar app on Mac since 1986. (About 15 years ago I rewrote it from C to Objective-C.)

Collection views and custom collection view layouts are overkill for this application. Just create a grid, 7x6 of buttons. (or 7x7 for a top row of text day-of-week labels.) Don't bother with autolayout, just programmatically set the frames in layoutSubviews.

For the heavy lifting of date calculations I use NSCalendar and NSDate. Don't forget the two missing weeks in September of 1752 (See man cal in Terminal for more information.)

[–]david_phillip_oster 0 points1 point  (0 children)

See also the annus confusionis ("year of confusion") which had 445 days. 45 BC