Latest 0.1.0
Homepage https://github.com/felipewil/FWShadowableScroll
License MIT
Platforms ios 9.0
Authors

Version
License
Platform

Example

FWShadowableScroll

To run the example project, clone the repo, and run pod install from the Example directory first.

Basic configuration with a UIScrollView:

@IBOutlet weak var scrollView: UIScrollView!

override func viewDidLoad() {
    super.viewDidLoad()

    scrollView.shouldShowScrollShadow = true
    scrollView.shadowRadius = 10.0 // Default is 4.0
    scrollView.shadowHeight = 10.0 // Default is 4.0
}

Even easier: shouldShowScrollShadow is an IBInspectable so it can be set through Interface Builder.

Installation

FWShadowableScroll is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'FWShadowableScroll'

License

FWShadowableScroll is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "FWShadowableScroll",
    "version": "0.1.0",
    "summary": "UIScrollView extension to add a top shadow while scrolling.",
    "description": "A scroll view top shadow, visible while scrolling, with customizable height and radius.",
    "homepage": "https://github.com/felipewil/FWShadowableScroll",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Felipe Leite": "[email protected]"
    },
    "source": {
        "git": "https://github.com/felipewil/FWShadowableScroll.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "3.2",
    "source_files": "FWShadowableScroll/Classes/**/*"
}

Pin It on Pinterest

Share This