v4.0.0-beta
Pre-release
Pre-release
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