PageView SwiftUI页面导航组件

PageView 是一个挺实用的 SwiftUI 组件,模仿了 iOS 中的 UIPageViewController。它了基于页面的导航功能,让你可以在多个内容页面间切换,功能跟 UIKit 的 UIPageViewController 类似。你会想,为什么 SwiftUI 本身没有分页控制组件?其实,它本来是没有的,但通过将 UIPageViewController 包装到 UIViewRepresentable 中,或者在 watchOS 中通过多个 WKHostingController,才能实现分页效果。PageView 就是为了这个问题,了一个原生的 SwiftUI 方案,挺方便的。安装的时候,需要 iOS 13、watchOS 6 和 Xcode 11。通过 Swift Package Manager 就能快速安装,直接把以下软件包添加到你的Package.swift中就行了。适合用来实现页面之间的分页导航。嗯,如果你正好需要这样的功能,试试这个包,蛮方便的。

zip
PageView-master.zip 预估大小:55个文件
folder
PageView-master 文件夹
folder
Examples 文件夹
folder
PageViewDemo WatchKit App 文件夹
file
Info.plist 1KB
folder
Base.lproj 文件夹
file
Interface.storyboard 837B
folder
Assets.xcassets 文件夹
folder
AppIcon.appiconset 文件夹
file
Contents.json 2KB
file
Contents.json 62B
folder
PageViewDemo WatchKit Extension 文件夹
folder
Preview Content 文件夹
folder
Preview Assets.xcassets 文件夹
file
Contents.json 62B
file
Info.plist 1KB
file
HostingController.swift 346B
file
ContentView.swift 1KB
file
ExtensionDelegate.swift 3KB
folder
Assets.xcassets 文件夹
folder
Complication.complicationset 文件夹
folder
Extra Large.imageset 文件夹
file
Contents.json 442B
folder
Graphic Corner.imageset 文件夹
file
Contents.json 442B
folder
Graphic Circular.imageset 文件夹
file
Contents.json 442B
folder
Graphic Bezel.imageset 文件夹
file
Contents.json 442B
folder
Graphic Large Rectangular.imageset 文件夹
file
Contents.json 442B
folder
Utilitarian.imageset 文件夹
file
Contents.json 442B
folder
Circular.imageset 文件夹
file
Contents.json 442B
file
Contents.json 995B
folder
Modular.imageset 文件夹
file
Contents.json 442B
file
Contents.json 62B
folder
PageViewDemo.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
folder
xcshareddata 文件夹
file
IDEWorkspaceChecks.plist 238B
file
contents.xcworkspacedata 135B
file
project.pbxproj 32KB
folder
PageViewDemo 文件夹
folder
Preview Content 文件夹
folder
Preview Assets.xcassets 文件夹
file
Contents.json 62B
file
Info.plist 2KB
file
AppDelegate.swift 1KB
file
Views.swift 1KB
folder
Base.lproj 文件夹
file
LaunchScreen.storyboard 2KB
file
ContentView.swift 780B
folder
Assets.xcassets 文件夹
folder
AppIcon.appiconset 文件夹
file
Contents.json 2KB
file
Contents.json 62B
file
SceneDelegate.swift 3KB
folder
Sources 文件夹
file
PageView.swift 7KB
file
PageViewBuilder.swift 5KB
file
PageControl.swift 3KB
file
PageContent.swift 3KB
file
PageControlTheme.swift 2KB
file
PageScrollState.swift 3KB
folder
Tests 文件夹
file
LinuxMain.swift 118B
folder
PageViewTests 文件夹
file
PageViewTests.swift 182B
file
XCTestManifests.swift 158B
folder
Images 文件夹
file
VPageView_watchOS.gif 1.22MB
file
PageView_iOS.png 66KB
file
PageViews_watchOS.png 73KB
file
HPageView_watchOS.gif 1.07MB
file
LICENSE 1KB
file
README.md 4KB
file
Package.swift 527B
file
.gitignore 40B
folder
PageView.xcodeproj 文件夹
folder
xcshareddata 文件夹
folder
xcschemes 文件夹
file
PageView-Package.xcscheme 2KB
folder
project.xcworkspace 文件夹
folder
xcshareddata 文件夹
file
WorkspaceSettings.xcsettings 269B
file
IDEWorkspaceChecks.plist 238B
file
contents.xcworkspacedata 135B
file
PageView_Info.plist 823B
file
PageViewTests_Info.plist 723B
file
project.pbxproj 18KB
...
zip 文件大小:2.41MB