dankinsoid/VDGesture
[](https://travis-ci.org/dankinsoid/VD) [](https://cocoapods.org/pods/VD) [](https://cocoapods.org/pods/VD) [](https://cocoapods.org/pods/VD)
Description
This repository contains new way to work with gestures
Usage
view.add {
Gestures.Sequence {
Gestures.Press()
.onChange { context, _ in
print("change press: \(context.location)")
}
Gestures.Drag()
.when(in: someView)
}.onChange {
print("change")
}.onFinish {
print("on finish")
}
}Installation
Add the following line to your Podfile:
pod 'VDGesture'and run pod update from the podfile directory first.
Create a Package.swift file.
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/VDGesture.git", from: "0.9.0")
],
targets: [
.target(name: "SomeProject", dependencies: ["VDGesture"])
]
)$ swift buildLicense
VDGesture is available under the MIT license. See the LICENSE file for more info.
Package Metadata
Repository: dankinsoid/VDGesture
Stars: 0
Forks: 0
Open issues: 0
Default branch: master
Primary language: swift
License: MIT
README: README.md