Releases: fredyshox/PageView
Releases · fredyshox/PageView
Fixes for compiler warnings
- Add id: .self to remove the ForEach warnings
- Update functionBuilder to resultBuilder
Pull request #24 by @ezefranca
Bug fixes & new features
- ForEach-style init (Support ForEach #17)
- Fix drag animation (On watchOS: drag ended animation starts from full previous screen #12)
- Ability to choose drag gesture type using PageGestureType
PageScrollStateis@StateObjectinstead of@ObservableObject, which prevents memory leaks- Bumped deployment target to iOS 14 and watchOS 7
Some of changes/features here are based on work of @gregcotten in #13
Changed framework's bundle identifier in xcodeproj
Changed framework's bundle identifier, which caused inability to run apps on device when using Carthage (Carthage/Carthage#2559 (comment))
Binding for selected page
New features:
- ability to programmatically control selected page using
selectedPageBinding pageSwitchThresholdparameter, which control distance that needs to be scrolled, to qualify as page switch
Fixed issue with PageControlTheme init being internal
Fixed issue with PageControlTheme init being internal.
Fixed issue with PageControl offset
Fixed issue with PageControlTheme.offset not being used.
API changes:
PageControlTheme.offset->xOffsetfor vertical mode &yOffsetfor horizontal mode
Fixed issue with gesture precedence
Fixed issue with gesture precedence (#2), causing button tap to be recognized before DragGesture
Performance improvement
Performance improvement by removing AnyView/Group components causing scrolling not being smooth on slower devices like Apple Watch.
- New API:
HPageViewandVPageViewaccording to chosen scroll direction - Ability to specify pages using function builder syntax style
PageControl alignment
Added ability to control alignment of PageControl component inside PageView.
Vertical PageView
- vertical PageView option
- slowed down scrolling when draging out of bounds (currently linearly)