Skip to content
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

How to scroll only one week?! #810

Closed
valentinkukjans opened this issue Jun 16, 2018 · 8 comments
Closed

How to scroll only one week?! #810

valentinkukjans opened this issue Jun 16, 2018 · 8 comments

Comments

@valentinkukjans
Copy link

How to scroll only one week? if I have one row? how to set boundaries? So when I scroll it's match the days on top of my calendar.

Thanks a lot in advance, Valentins

@patchthecode
Copy link
Owner

not sure what you mean.
Are you talking about paging?

@valentinkukjans
Copy link
Author

screen shot 2018-06-16 at 8 29 37 pm
screen shot 2018-06-16 at 8 29 24 pm

@valentinkukjans
Copy link
Author

I wanna achieve same scrolling like calendar app does , scrolls week by week. How to set those boundaries? Thanks

@patchthecode
Copy link
Owner

simply setup a single row calendar -> #581
is this what you mean?

@valentinkukjans
Copy link
Author

no, in calendar app when you scroll, the header stays (days on top). Can you please check calendar app, and see behavior of it. Thanks for your help.

@patchthecode
Copy link
Owner

patchthecode commented Jun 18, 2018

I still do not understand what you mean.

I wanna achieve same scrolling like calendar app does , scrolls week by week
in calendar app when you scroll, the header stays

What does this mean? This calendar lib already scrolls by week/month.
Are you saying you want to implement a header which does not scroll? Please be extremely specific. Sometimes an idea in your head may not mean the same in mine.

@valentinkukjans
Copy link
Author

calendarView.scrollingMode = .stopAtEachSection.

one line of code solve my problem:) I didn't know about scroll mode. Thanks you for great lib, and been so responsive. 👍

@patchthecode
Copy link
Owner

sure thing.
but this is weird. the default should be -> calendarView.scrollingMode = .stopAtEachFrame ( i think)
but its ok. Glad it is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants