SimplePagedView Versions Save

A UIPageViewController replacement built to be as simple as possible

1.3.0

5 years ago

1.2.0

5 years ago

This removes the

self.add(pagedViewController) { (childView) -> [NSLayoutConstraint] in
    // Return an array of constraints to apply to the paged view
}

syntax in place of more standard constraint application syntax.

Also included:

// perform some action when the view finishes scrolling
// useful if some sort of reload needs to happen when a user reaches a page
simplePagedView.didFinishScrolling { pageNumber in
    // Do what you need to
}
// true if the user is dragging or if scrolling animations haven't completed yet
simplePagedView.isScrolling
  • View more reliably moves to the initial page provided in view constructor

1.1.0

5 years ago

Replacing the UIPageControl with a custom implementation affords us significantly more flexibility as evidenced by the new features in this release.

Updates:

  • Providing an initial page, dot size, and dot replacement image are all more reliable
  • Faster load times with less jank
  • Ability to replace any dot with a custom UIImage
let pagedView = SimplePagedView(
    imageIndices: [1: #imageLiteral(resourceName: "add")], // will replace the dot at index 1 with a UIImageView
    with: green, red, orange
)
let pagedView = SimplePagedView(
    // also supports negative indexing similar to Python. This will replace the last dot with a UIImageView
    imageIndices: [-1: #imageLiteral(resourceName: "add")],
    with: green, red, orange
)

simulator screen shot - iphone 8 - 2018-12-19 at 01 01 53

Non-feature updates: Check out the included example project and playground to try out other features 😄

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

Exists purely to get cocoapods up and running.