touchlane/SlideController

[question]how to swipe begin by code

sugitatestblue opened this issue · 2 comments

Could you tell me how to set SlideController to swipe begin event by code?

Hello @sugitatestblue
You can use func shift(pageIndex: Int, animated: Bool = default, forced: Bool = default). It slides content to page at pageIndex.
If you want to handle swipe events initiated by user you need to implement protocol SlidePageLifeCycle. Please take a look on example project for more information.

Archive issue