目录
目录README.md

VDGesture

CI Status Version License Platform

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

  1. CocoaPods

Add the following line to your Podfile:

pod 'VDGesture'

and run pod update from the podfile directory first.

  1. Swift Package Manager

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 build

Author

dankinsoid, voidilov@gmail.com

License

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

关于
146.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号