Latest 0.1.0
Homepage https://github.com/lvh1g15/sliderProgress
License MIT
Platforms ios 8.0
Dependencies SnapKit
Frameworks UIKit
Authors

SliderProgress

CI Status
Version
License
Platform

Demo

Requirements

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

Installation

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

pod 'SliderProgress'

Author

Landon Vago-Hughes, Contact: [email protected]

License

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

Example usage


import SliderProgress

class ViewController: UIViewController, UIScrollViewDelegate {

weak var progressBar: SwipeProgression!

override func viewDidLoad() {
    let progressions: SwipeProgression = SwipeProgression(frame: CGRect.zero)
    self.view.addSubview(progressions)
    progressions.setup()
    self.progressBar = progressions
    }

func scrollViewDidScroll(_ scrollView: UIScrollView) {
    if progressions == nil {
            self.dismiss(animated: true, completion: nil)
        } else {
            progressBar.animateWidth(scrollheight: 150, scrollviewcurrent: scrollView, targetviewcontroller: self)
        }
    }
}

Latest podspec

{
    "name": "sliderdismissanimation",
    "version": "0.1.0",
    "summary": "Swipe to dismiss progress animation",
    "description": "An animation kit for some clean swipe to dismiss features. The method will create the animation and dismiss when you have reached a cetain offset. The view can be customised for colour and also how far you would like the user to swipe upwards until the view dismisses.",
    "homepage": "https://github.com/lvh1g15/sliderProgress",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lvh1g15": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lvh1g15/sliderProgress.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "sliderdismissanimation/Classes/**/*",
    "frameworks": "UIKit",
    "dependencies": {
        "SnapKit": [
            "~> 3.0"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This