Skip to content

Releases: fredyshox/PageView

Fixes for compiler warnings

11 Mar 22:57
b70afde
Compare
Choose a tag to compare
  • Add id: .self to remove the ForEach warnings
  • Update functionBuilder to resultBuilder

Pull request #24 by @ezefranca

Bug fixes & new features

30 Sep 17:09
059f893
Compare
Choose a tag to compare
  • 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
  • PageScrollState is @StateObject instead 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

15 Jul 13:38
Compare
Choose a tag to compare

Changed framework's bundle identifier, which caused inability to run apps on device when using Carthage (Carthage/Carthage#2559 (comment))

Binding for selected page

18 Jun 16:00
d9ef69e
Compare
Choose a tag to compare

New features:

  • ability to programmatically control selected page using selectedPage Binding
  • pageSwitchThreshold parameter, which control distance that needs to be scrolled, to qualify as page switch

Fixed issue with PageControlTheme init being internal

18 Jun 10:54
baf9f9d
Compare
Choose a tag to compare

Fixed issue with PageControlTheme init being internal.

Fixed issue with PageControl offset

26 May 20:07
Compare
Choose a tag to compare

Fixed issue with PageControlTheme.offset not being used.

API changes:

  • PageControlTheme.offset -> xOffset for vertical mode & yOffset for horizontal mode

Fixed issue with gesture precedence

14 May 09:52
22b178e
Compare
Choose a tag to compare

Fixed issue with gesture precedence (#2), causing button tap to be recognized before DragGesture

Performance improvement

20 Mar 21:35
32bcb64
Compare
Choose a tag to compare

Performance improvement by removing AnyView/Group components causing scrolling not being smooth on slower devices like Apple Watch.

  • New API: HPageView and VPageView according to chosen scroll direction
  • Ability to specify pages using function builder syntax style

PageControl alignment

17 Feb 20:34
Compare
Choose a tag to compare

Added ability to control alignment of PageControl component inside PageView.

Vertical PageView

15 Feb 14:02
Compare
Choose a tag to compare
  • vertical PageView option
  • slowed down scrolling when draging out of bounds (currently linearly)