MIT License

项目介绍

snail-z/DawnTransition 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 1.5k 个 Star、254 次 Fork。

仓库全名
snail-z/DawnTransition
开源许可证
MIT License
Star 数
1.5k
Fork 数
254
未关闭 Issue
1

README 摘要

DawnTransition 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: Run pod install…

完整内容见 GitHub 原始 README 或本页 。

常见问题

DawnTransition 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 1.5k 个 Star。

DawnTransition 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 DawnTransition 的源码?

可以直接克隆仓库:git clone https://github.com/snail-z/DawnTransition.git,默认分支为 master;安装与运行步骤见仓库 README。

DawnTransition 最近还在维护吗?

仓库最近一次更新为 6月4日,当前有 1 个未关闭 Issue;Star 数为 1.5k,可作为社区活跃度的参考。

简要分析

热度分
2050
价值分
981
活跃状态
活跃

语言占比

C
Objective-C
Ruby
Swift

贡献者

README

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.

评论

暂无评论