Skip to content

Latest commit

 

History

History
48 lines (25 loc) · 1.86 KB

Scrolling Modes.md

File metadata and controls

48 lines (25 loc) · 1.86 KB

Scrolling modes

Warning

This section requires assistance. Please submit a PR if possible to help improve documentation

There are 7 modes.

calendarView.scrollingMode =

  1. stopAtEachCalendarFrame

Non-continuous scrolling. Calendar will stop scrolling when it has scrolled a distance of frame.width, before accepting another scroll.

stop at each frame

  1. stopAtEachSection

Non-continuous scrolling. Calendar will stop scrolling when it has scrolled a distance of a section’s width, before accepting another scroll. Months can be divided into sections depending on how many rows per month you chose to display.

stop at each section

  1. stopAtEach(customInterval: CGFloat)

Non-continuous scrolling. Calendar will stop scrolling at every point where your set interval has been reached.

  1. nonStopToSection(withResistance: CGFloat)

Continuous scrolling. Calendar will smoothly scroll and gradually decelerate. When stopped, it will snap to a section. Deceleration rate is based on resistance value (from 0.0 to 1.0)

nonstop to section

  1. nonStopToCell(withResistance: CGFloat)

Continuous scrolling. Calendar will smoothly scroll and gradually decelerate. When stopped, it will snap to a cell. Deceleration rate is based on resistance value (from 0.0 to 1.0)

nonstop to cell

  1. nonStopTo(customInterval: CGFloat, withResistance: CGFloat)

Continuous scrolling. Calendar will smoothly scroll and gradually decelerate. When stopped, it will snap to your set custom interval. Deceleration rate is based on resistance value (from 0.0 to 1.0)

  1. none

Continuous scrolling. Calendar will smoothly scroll and gradually decelerate till it stops.

Next Steps

Learn how to switch between month-view and week-view