FSPagerView Swift幻灯片控件

精致动画的幻灯片控件,FSPagerView确实挺好用的。它基于UICollectionView,但封装得比较到位,写起来清爽,效果也丝滑。做横幅、产品轮播图或者欢迎页那种新手引导,用它顺手。

横向滑动、纵向滑动、自动轮播、无限循环,它都支持。比如想让它每 3 秒自动滚一次,只要设下automaticSlidingInterval = 3.0就行。想无限轮播?加一句isInfinite = true就搞定。基本就是那种“想开就开,想停就停”的自由配置。

滑动效果也蛮花样的,内置了一堆3D 变换器,像旋转、缩放、堆叠都能玩。你也可以自己写样式,完全自定义每一页的样子。适合那种追求视觉体验的需求。

页面指示器也不赖,自带样式,也可以自定义颜色、大小、位置。如果你懒得设计,直接套它默认的也挺好看。整个库对新手友好,对老手又足够灵活。

最妙的是,Swift 和 Objective-C都能用,不挑语言。API 设计得还蛮直觉,像pagerView.itemSize这种属性一看就明白怎么调。

如果你在做电商轮播、App 引导页,或者需要一个轻量却功能够用的轮播控件,FSPagerView确实值得试试。别忘了它的decelerationDistance属性,用得好,可以让滑动体验更“高级”一些。

zip
FSPagerView-master.zip 预估大小:82个文件
folder
FSPagerView-master 文件夹
folder
Resources 文件夹
file
2.jpg 139KB
file
6.jpg 140KB
file
1.jpg 69KB
file
4.jpg 61KB
file
5.jpg 169KB
folder
Assets.xcassets 文件夹
folder
icon_cat.imageset 文件夹
file
icon_cat@2x.png 3KB
file
Contents.json 308B
folder
icon_footprint.imageset 文件夹
file
icon_footprint@2x.png 2KB
file
Contents.json 314B
folder
AppIcon.appiconset 文件夹
file
Icon-60@2x.png 7KB
file
Icon-Small@3x.png 5KB
file
Icon-20.png 1KB
file
Icon-60.png 2KB
file
icon-1024.png 51KB
file
Icon-76.png 4KB
file
Icon-Small@2x.png 2KB
file
Icon-40.png 1KB
file
Icon-42.png 1KB
file
Icon-76@2x.png 11KB
file
Icon-40@2x.png 3KB
file
Icon-40@3x.png 7KB
file
Icon-167.png 15KB
file
Icon-Small.png 936B
file
Icon-60@3x.png 18KB
file
Icon-40@2x-1.png 3KB
file
Icon-Small@2x-1.png 2KB
file
Icon-41.png 1KB
file
Contents.json 2KB
file
Contents.json 62B
file
7.jpg 46KB
file
3.jpg 71KB
folder
FSPageViewExample-Swift 文件夹
folder
FSPagerViewExample 文件夹
file
Info.plist 1KB
file
AppDelegate.swift 2KB
file
TransformerExampleViewController.swift 5KB
file
BasicExampleViewController.swift 8KB
folder
Base.lproj 文件夹
file
LaunchScreen.storyboard 2KB
file
Main.storyboard 37KB
file
PageControlExampleViewController.swift 10KB
folder
FSPagerViewExampleUITests 文件夹
file
Info.plist 680B
file
FSPagerViewExampleUITests.swift 1KB
folder
FSPagerViewExample.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 237B
file
project.pbxproj 26KB
folder
FSPagerViewExamples.xcworkspace 文件夹
file
contents.xcworkspacedata 384B
folder
Sources 文件夹
file
FSPagerView.swift 26KB
file
FSPagerCollectionView.swift 2KB
file
FSPagerViewLayoutAttributes.swift 816B
file
FSPagerViewObjcCompat.m 308B
file
FSPageViewTransformer.swift 11KB
file
FSPagerViewCell.swift 5KB
file
FSPageControl.swift 10KB
file
FSPageViewLayout.swift 13KB
file
FSPagerViewObjcCompat.h 521B
file
LICENSE 1KB
file
FSPagerView.podspec 865B
file
README.md 12KB
folder
FSPagerViewExample-Objc 文件夹
folder
FSPagerViewExample-ObjcUITests 文件夹
file
Info.plist 680B
file
FSPagerViewExample_ObjcUITests.swift 1KB
folder
FSPagerViewExample-Objc 文件夹
file
TransformerExampleViewController.h 253B
file
Info.plist 1KB
file
BasicExampleViewController.m 9KB
file
main.m 356B
folder
Base.lproj 文件夹
file
LaunchScreen.storyboard 2KB
file
Main.storyboard 37KB
file
BasicExampleViewController.h 261B
file
PageControlExampleViewController.h 271B
file
AppDelegate.h 299B
file
TransformerExampleViewController.m 6KB
file
PageControlExampleViewController.m 12KB
file
AppDelegate.m 2KB
folder
FSPagerViewExample-Objc.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 240B
folder
xcuserdata 文件夹
folder
wenchaoding.xcuserdatad 文件夹
folder
xcdebugger 文件夹
file
Breakpoints_v2.xcbkptlist 91B
folder
xcschemes 文件夹
file
xcschememanagement.plist 675B
file
FSPagerViewExample-Objc.xcscheme 4KB
file
project.pbxproj 28KB
file
README-OBJECTIVE-C.md 12KB
folder
FSPagerView 文件夹
folder
FSPagerView 文件夹
file
Info.plist 755B
file
FSPagerView.h 515B
folder
FSPagerView.xcodeproj 文件夹
folder
xcshareddata 文件夹
folder
xcschemes 文件夹
file
FSPagerView.xcscheme 3KB
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 156B
file
project.pbxproj 15KB
file
Package.swift 395B
file
.gitignore 1KB
...
zip 文件大小:917.19KB