Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@rechsteiner rechsteiner released this 25 May 14:13
189e900

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