Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Fix top and bottom for iphone X #148

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Fix top and bottom for iphone X #148

wants to merge 29 commits into from

Conversation

ThuongNguyen
Copy link

Hello. I change some code in ViewPagerController.m now ICViewPager work fine on the new iPhone X

[KOP] Thuong Corleone and others added 29 commits November 10, 2017 17:47
- Project version updated
- Updated project setup
- Swift 4.1
- Legacy source moved into a separate group
- Created empty screen for control purposes
This change installs a collection view for content, another collection view for tab content, a stack view to house the tab collection view. The stack view later will be used to include an active tab indicator view.
This change does a lot. 😅 After the initial layout implementation, this change implements view controller fetching from the data source and presenting the contents in the content collection view. Although, custom content layout for paging is yet to be implemented.
This change implements the tab bar contents. Although, custom tab layout for paging and active tab indicator are yet to be implemented.
I assumed keeping a weak reference to the content view controller would be fine, but turns out collection view might not call data source function cellForItemAt:IndexPath to let me configure the cell again with the view controller, because it’s already cached.
This change introduces ScrollController that will be responsible for communication between content and tab collection views. Also with this change we already have content selection over tab collection view, but we still have some work to do for tab and content tracking.
This change allows the client to configure tab width to be either fixed or flexible to fill the full width. Auto sizing is planned for future development.
This change explicitly passes the nib name and bundle in init function fixing the case where ViewPagerController is bundled within a framework.
* commit 'd32bde206c02f96ef3d4e5d9c13530f724f2f637': (23 commits)
  Fix ViewPagerController init
  Minor refactors
  Fix empty data source case
  Update Readme
  Add customizable color support for tab indicator
  Update Readme
  Update Readme
  Remove legacy code base
  Add tab item sizing policy
  Implement tab indicator
  Fine tune scrolling on content collection view
  Implement scroll on tab bar when content scrolls
  Disable bouncing for collection views
  Add numbers to example scenes
  Implement ScrollController
  Set background color for ViewPagerController
  Implement paging layout
  Fix for view controller embedding
  Implement initial tab bar
  Implement initial view controller embedding
  ...

# Conflicts:
#	ICViewPager/ICViewPager/ViewPagerController.m
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.

1 participant