Thanks for your work, I really like PagingMenuController!
- Expected behavior and actual behavior.
Expected behavior :
When moving through pages the position of MenuItemViews updates the position of Menu Item's views accordingly so that 1) there is no 'jumps' on the position of views just to force them use the whole Menu View's width ( when there exists less Menu Items than are needed to fill the whole Menu View's width ) and 2) that the current Menu Item View is always visible ( when there exists more Menu Items than are possible to show in the current Menu View's width )
Current behavior :
When moving through pages the position of MenuItemViews updates in a weird way:
Scenario 1 : If the Menu Item's total width is less than the current Menu View's width then the calculation of the offset that each Menu Item should have is based on a ratio of the view's width. Making the Menu Items move across the whole width. Example
Scenario 2 : If the Menu Item's total width is greater than the current Menu View's width then the calculation follows the same rule as case 1. But as the number increases the ratio factor does not work and Menu Items stop being visible. Example
- Steps to reproduce the problem.
- For reproduce both behaviors consider the following properties on
var displayMode: MenuDisplayMode {
return .standard(widthMode: .flexible, centerItem: false, scrollingMode: .pagingEnabled)
}
var focusMode: MenuFocusMode {
return .none
}
- For Scenario 1 init the PageMenuController with 3 controllers on iPad. For Scenario 2 init the PageMenuController with 8 controllers on iPhone.
- Specifications like the version of the project, library, or Swift.
Using the demo provided project, with "PagingMenuController" (2.0.0), Swift 3.0 and Xcode 8.0
Thanks for your work, I really like PagingMenuController!
- Expected behavior and actual behavior.
Expected behavior :
When moving through pages the position of MenuItemViews updates the position of Menu Item's views accordingly so that 1) there is no 'jumps' on the position of views just to force them use the whole Menu View's width ( when there exists less Menu Items than are needed to fill the whole Menu View's width ) and 2) that the current Menu Item View is always visible ( when there exists more Menu Items than are possible to show in the current Menu View's width )
Current behavior :
When moving through pages the position of MenuItemViews updates in a weird way:
Scenario 1 : If the Menu Item's total width is less than the current Menu View's width then the calculation of the offset that each Menu Item should have is based on a ratio of the view's width. Making the Menu Items move across the whole width. Example
Scenario 2 : If the Menu Item's total width is greater than the current Menu View's width then the calculation follows the same rule as case 1. But as the number increases the ratio factor does not work and Menu Items stop being visible. Example
- Steps to reproduce the problem.
- Specifications like the version of the project, library, or Swift.
Using the demo provided project, with "PagingMenuController" (2.0.0), Swift 3.0 and Xcode 8.0