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

Version 3.0 #537

Merged
merged 23 commits into from
Dec 3, 2020
Merged

Version 3.0 #537

merged 23 commits into from
Dec 3, 2020

Conversation

rechsteiner
Copy link
Owner

Changes:

This version introduces some breaking changes. More details about the release can be found here: #452.

The implementation is split into two classes, PageViewController and
PageViewManager. PageViewManager is responsible for all the logic
related to adding/removing view controllers and calling the correct
appearance transitions, while PageViewController is responsible for
updating the UIScrollView.
Adds another flag to the layoutViews method so we can opt-out of
accounting for the current content offset when rotating.
Make sure viewWillAppear, viewDidAppear, viewWillDisappear and
viewDidDisappear is forwarded to the selected view controller and
include the correct animated flag.
Moves the PageViewManager configuration to the initializers to ensure
that we handle the selectViewController method if it's called before
viewDidLoad has been triggered.
Ideally we would keep these private, but the current implementation
exposes them so it better not to break existing apps.
PagingDistance is responsible for calculating the distance that the
collection view has to travel when selecting an item. This is used to
ensure a smooth transition. This commit refactors the calculation to
work with both vertical and horizontal layouts and introduces unit
tests for the most of the possible cases.
Add support calculating vertical distances
…t-tests

Add unit tests for PagingCollectionViewLayout
Fix build error due to missing imports
The previous implementation was already using open, so we need to keep
it open in order to prevent breaking existing apps that rely on this.
Make PageViewControllerDataSource/Delegate methods open
@rechsteiner rechsteiner merged commit b67447a into master Dec 3, 2020
@rechsteiner rechsteiner deleted the 3.0 branch December 3, 2020 19:46
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

Successfully merging this pull request may close these issues.

1 participant