Creating a custom calendar/ month view in iOS
<p>I'm trying to create a custom calendar/ month view from scratch similar to this:</p>

<p><a href="https://i.stack.imgur.com/SiLGd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SiLGd.png" alt="enter image description here"></a></p>

<p>And with that I'm wondering what the correct approach would be. I'm calculating which weekday the first day of the month falls on (mon-sun), and the number of days in the month. This should be enough to determine how the calendar should look, but I'm stuck trying to figure out a way to lay this all out.</p>

<p>Is it best to have 37 buttons in a grid layout in the storyboard and iterate through them somehow, changing their label, or dynamically create these buttons on the fly? Is there any element/ framework in iOS I could make use of to make this process easier?</p>

<p>If going for the latter, how would you set up the constraints to make this scalable on different size classes and screen sizes?</p>