-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftUI visible month #280
Comments
I used
for this. |
@4erenkevi4, when I tried this, the resources my app consumes skyrocketed. I'm wondering if you have a workaround around this? @bryankeller, perhaps this would be a good API to introduce on the next update? |
That's indeed a useful API, and it will also bridge nicely to its UIKit counterpart. In the meantime, assuming that you know the initially selected date or the date that you use in order to scroll the calendar to the desired month, you could use the following method on the Foundation
This method returns a You could call this method as soon as you have the starting date of your calendar view, either in one of your views ( |
Any estimate on when this will become available? In my usage of HorizonCalendar I need to track the visible month (horizontal layout). Even if I define a initial selected date and scroll to it (then having the inicial visible month) I still didn't figure out how to track the visible month when the user swipe to next/previous month. Thank you! |
Hello!
Is is possible to get a visible month in SwiftUI?
There is a property
visibleMonthRange
in UIKit, but we don't have it in SwiftUI version.The text was updated successfully, but these errors were encountered: