项目
在 GitHub 查看
johnvuko/JT3DScrollView
关于
适用于 iOS 的 ScrollView,可在滚动过程中应用自定义效果。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文JT3DScrollView
JT3DScrollView is a UIScrollView with custom effects during the scroll.
Installation
With CocoaPods, add this line to your Podfile.
pod 'JT3DScrollView', '~> 2.0'
Screenshots

Usage
You can use it like a classic UIScrollView, the isPagingEnabled is set to true by default and clipsToBounds is set to false.
import UIKit
import JT3DScrollView
class ViewController: UIViewController {
@IBOutlet weak var scrollView: JT3DScrollView?
override func viewDidLoad() {
super.viewDidLoad()
scrollView?.effect = .cards
}
}
You can disable the effect and act like a classic UIScrollView by setting effect to .none.
Effects are just preset for some properties used for the animations, you can adjust all effects with:
angleRatiorotationXrotationYrotationZtranslateXtranslateY
All this properties are relative to the position X of the subview.
Requirements
- iOS 8 or higher
- Swift 3.0
Author
License
JT3DScrollView is released under the MIT license. See the LICENSE file for more info.
探索相关项目
加载中…