Merge branch ‘master’ of https://github.com/dankinsoid/VDGesture
This repository contains new way to work with gestures
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") } }
Add the following line to your Podfile:
pod 'VDGesture'
and run pod update from the podfile directory first.
pod update
Create a Package.swift file.
Package.swift
// 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 build
dankinsoid, voidilov@gmail.com
VDGesture is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
VDGesture
Description
This repository contains new way to work with gestures
Usage
Installation
Add the following line to your Podfile:
and run
pod update
from the podfile directory first.Create a
Package.swift
file.Author
dankinsoid, voidilov@gmail.com
License
VDGesture is available under the MIT license. See the LICENSE file for more info.