PageView Versions Save

SwiftUI view enabling navigation between pages of content, imitating the behaviour of UIPageViewController for iOS and watchOS

1.5.1

1 year ago
  • Add id: .self to remove the ForEach warnings
  • Update functionBuilder to resultBuilder

Pull request #24 by @ezefranca

1.5.0

2 years ago
  • 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

1.4.1

3 years ago

Changed framework's bundle identifier, which caused inability to run apps on device when using Carthage (https://github.com/Carthage/Carthage/issues/2559#issuecomment-539665460)

1.4.0

3 years ago

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

1.3.3

3 years ago

Fixed issue with PageControlTheme init being internal.

1.3.2

3 years ago

Fixed issue with PageControlTheme.offset not being used.

API changes:

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

1.3.1

4 years ago

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

1.3.0

4 years ago

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

1.2.0

4 years ago

Added ability to control alignment of PageControl component inside PageView.

1.1.0

4 years ago
  • vertical PageView option
  • slowed down scrolling when draging out of bounds (currently linearly)