Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Fix collection view controllers life cycle issue #190

Merged

Conversation

zenangst
Copy link
Owner

  • Add special treatment for UICollectionViewController's as their view is different from other core classes.

Because UICollectionViewController's view is an internal class
(UICollectionViewControllerWrapperView), we need to cherry-pick
by adding the collection view as the view that goes into FamilyScrollView
and prepend the view controllers view (the internal class) to the bottom
of the hierarchy so that it doesn't cover up the FamilyScrollView.

- Add special treatment for `UICollectionViewController`'s as their view is different from other core classes.

Because `UICollectionViewController`'s view is an internal class
(`UICollectionViewControllerWrapperView`), we need to cherry-pick
by adding the collection view as the view that goes into `FamilyScrollView`
and prepend the view controllers view (the internal class) to the bottom
of the hierarchy so that it doesn't cover up the `FamilyScrollView`.
@codecov-commenter
Copy link

codecov-commenter commented Sep 10, 2020

Codecov Report

Merging #190 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #190   +/-   ##
=======================================
  Coverage   80.11%   80.11%           
=======================================
  Files          11       11           
  Lines         835      835           
=======================================
  Hits          669      669           
  Misses        166      166           
Flag Coverage Δ
#iOS 43.00% <ø> (ø)
#macOS 80.11% <ø> (ø)
#tvOS 43.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec055af...f364118. Read the comment docs.

@zenangst zenangst merged commit fdf9228 into master Sep 11, 2020
@zenangst zenangst deleted the fix/collection-view-controllers-view-life-cycle-issue branch September 11, 2020 13:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants