Skip to content
プロジェクト

概要

DawnTransitionは、滑らかでカスタマイズ可能なアニメーションと、ネイティブに近いインタラクティブなスワイプバックジェスチャーを実現する軽量なiOSトランジションフレームワークです。カスタムトランジションで起こりがちなジェスチャーの競合を解決し、実際のプロジェクトで検証されています。

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
+1
1か月
+2

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

DawnTransition

Language License Platform Version

DawnTransition is a lightweight iOS transition framework for smooth, customizable animations and native-like interactive swipe-back gestures. It solves common gesture conflicts in custom transitions and is proven in real projects.

Requirements

  • iOS 13.0+
  • Swift 5.0+

Installation

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

pod 'DawnTransition'

Run pod install to integrate it into your project.

📦 Swift Package Manager

DawnTransition also supports Swift Package Manager:

In Xcode:

  • File > Swift Packages > Add Package Dependency
  • Add https://github.com/snail-z/DawnTransition.git
  • Select "Up to Next Major" with "1.1.0"

Or manually in Package.swift:

// swift-tools-version:5.0
import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    dependencies: [
        .package(url: "https://github.com/snail-z/DawnTransition.git", from: "1.1.0")
    ],
    targets: [
        .target(
            name: "YOUR_TARGET_NAME",
            dependencies: ["DawnTransition"]
        )
    ]
)

Then run swift build to fetch and integrate the package.

Usage

let pan = DawnPanGestureRecognizer(driver: self, type: .dismiss) { [weak self] in
    guard let `self` = self else { return }
    self.dismiss(animated: true)
}
pan.isRecognizeWhenEdges = false
pan.recognizeDirection = .leftToRight
view.dawn.addPanGestureRecognizer(pan)

Author

haoz, [email protected]

License

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

関連プロジェクトを探す

読み込み中…