Releases: rechsteiner/Parchment
v4.1.0
v4.0.0
Version 4.0 introduced a new and improved API for PageView in SwiftUI. Each page can now show define their own menu items, which can be any SwiftUI view. The new API also supports result builders, which allows you to easily setup your PageView.
PageView {
Page("Title 1") {
Text("Page 1")
}
Page { _ in
Image(systemName: "star.fill")
} content: {
Text("Page 2")
}
}
Changes
- New API for PageView in SwiftUI #666
- Updated minimum deployment target to iOS 11 #661
- Constrain menu to safe area insets by default #668
Added
- Add support for custom SwiftUI styles for indicator views #684
- Add horizontal right alignment support #658
- Add missing color modifiers to PageView #675
- Add new PagingIndexable protocol to allow comparison between items #678
Fixes
- Fix PageViewController isScrollingFrom delegate when overshooting #669
- Fix didSelectItem delegate being called before actual selection #676
- Fix setting PageView closures multiple times #677
- Fix rotation and crash issues with calling layoutIfNeeded #680
- Fix options not propagating changes when SwiftUI view is updated #697
v3.4.0
v3.3.0
v4.0.0-beta
Version 4.0 introduced a new and improved API for PageView in SwiftUI. Each page can now show define their own menu items, which can be any SwiftUI view. The new API also supports result builders, which allows you to easily setup your PageView. See more in the README.
PageView {
Page("Title 1") {
Text("Page 1")
}
Page { _ in
Image(systemName: "star.fill")
} content: {
Text("Page 2")
}
}
Changes
Added
- Add horizontal right alignment support #658
v3.2.1
v3.2.0
v3.1.0
Added
- Add support for
pagingContentBackgroundColor
property #592 - Add
contentInteraction
property intoPagingOptions
#593
Changes
- Support for Xcode 13 #581 #601
- Updated API for SwiftUI wrapper #572 #551
- Drop support for iOS 8 #568
- Remove support for older Swift versions #595
- Improve accessibility of default paging cell #602
Fixes
v3.0.1
v3.0.0
Changes:
This version introduces some breaking changes:
Replaced EMPageViewController
EMPageViewController
has been replaced with our own PageViewController
implementation, which fixes a bunch of issues (#524, #527, #426). The API of the new page view controller is pretty much identical to the old one, but the names of the types have changed:
open class PagingViewController:
UIViewController,
UICollectionViewDelegate,
- EMPageViewControllerDataSource,
- EMPageViewControllerDelegate {
+ PageViewControllerDataSource,
+ PageViewControllerDelegate {
- public let pageViewController: EMPageViewController
+ public let pageViewController: PageViewController
- open func em_pageViewController(_ pageViewController: EMPageViewController, viewControllerBeforeViewController viewController: UIViewController) -> UIViewController? {
+ open func pageViewController(_ pageViewController: PageViewController, viewControllerBeforeViewController viewController: UIViewController) -> UIViewController? {
- open func em_pageViewController(_ pageViewController: EMPageViewController, viewControllerAfterViewController viewController: UIViewController) -> UIViewController? {
+ open func pageViewController(_ pageViewController: PageViewController, viewControllerAfterViewController viewController: UIViewController) -> UIViewController? {
- open func em_pageViewController(_ pageViewController: EMPageViewController, isScrollingFrom startingViewController: UIViewController, destinationViewController: UIViewController?, progress: CGFloat) {
+ public func pageViewController(_ pageViewController: PageViewController, isScrollingFrom startingViewController: UIViewController, destinationViewController: UIViewController?, progress: CGFloat) {
- open func em_pageViewController(_ pageViewController: EMPageViewController, willStartScrollingFrom startingViewController: UIViewController, destinationViewController: UIViewController) {
+ public func pageViewController(_ pageViewController: PageViewController, willStartScrollingFrom startingViewController: UIViewController, destinationViewController: UIViewController) {
- open func em_pageViewController(_ pageViewController: EMPageViewController, didFinishScrollingFrom startingViewController: UIViewController?, destinationViewController: UIViewController, transitionSuccessful: Bool) {
+ open func pageViewController(_ pageViewController: PageViewController, didFinishScrollingFrom startingViewController: UIViewController, destinationViewController: UIViewController, transitionSuccessful: Bool) {
}
More details about the release can be found here: #452