CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.

MTSlideToOpen 1.5.1

MTSlideToOpen 1.5.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2020
SPMSupports SPM

Maintained by Tien Le Manh.




MTSlideToOpen

A simple SlideToUnlock iOS UI component

Requirements

  • Swift 5.0
  • iOS 9.0 or later

Installation

Using CocoaPod

Just add to your Pod file

pod 'MTSlideToOpen'

Manual install

Drag and drop folder Source to your project. Drag and drop to folder.

Usage

  let slide = MTSlideToOpenView(frame: CGRect(x: 26, y: 400, width: 317, height: 56))
  slide.sliderViewTopDistance = 6
  slide.sliderCornerRadious = 22
  slide.delegate = self
  slide.defaultLabelText = "Slide To Unlock"
  slide.thumnailImageView.image = ic_arrow

SwiftUI version

I built another version using SwiftUI. You can check it here MTSlideToOpen-SwiftUI.

License

This project is licensed under the MIT License - see the LICENSE.md file for details