airbnb / HorizonCalendar

A declarative, performant, iOS calendar UI component that supports use cases ranging from simple date pickers all the way up to fully-featured calendar apps.
Apache License 2.0
2.79k stars 234 forks source link

How to show a partial month #319

Open megjablon opened 1 week ago

megjablon commented 1 week ago

Hi,

First, thank you for your work! Trying to get this library hooked up in my new SwiftUI hobby app, and it's been a great accelerator of my work.

For showing partial boundary months, what portion of the code is actually causing the library to show partial months? It's not clear to me from the PartialMonthVisibilityDemo, and I'm trying to make it work in SwiftUI rather than UIKit.

Thanks again!

Megan

megjablon commented 1 week ago

Never mind, I found alwaysShowCompleteBoundaryMonths to use in the MonthsLayout. Not sure why the demo doesn't set that. Keeping this bug so that others can find this solution if needed.