It's Swift-ified fork of SSFadingScrollView
A UIScrollView subclass that fades the leading and/or trailing edges of a scroll view to transparent. It animates the gradient in and out based on the current content offset, and uses a mask to fade the scroll view content without also fading the scroll bars.
Fade leading edge of fade axis. Default is true
.
Fade trailing edge of fade axis. Default is true
.
Size of gradient. Default is 30
.
Duration of fade in & out. Default is 0.3
seconds.
Default is true
. Scroll bars are masked so they don't fade with the scroll view content. Set to false
to fade out the scroll bars along with the content.
Add following line to your dependencies
in Package.swift
file in your project:
.package(url: "https://github.com/bdolewski/BDFadingScrollView", from: "1.0.0")
Just copy file BDFadingScrollView.swift
into Xcode and have fun 🙂
With thanks to:
Photos in the demo project were sourced from Unsplash.
BDFadingScrollView is released under the MIT license. See LICENSE for details.
link |
Stars: 0 |
Last commit: 4 years ago |
SSFadingScrollView re-written in Swift. No features dropped or deprecated. For iOS 11+.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics