snail-z/DawnTransition
소개
DawnTransition는 부드럽고 사용자 지정 가능한 애니메이션과 네이티브와 유사한 인터랙티브 스와이프 백 제스처를 제공하는 경량 iOS 전환 프레임워크입니다. 사용자 지정 전환에서 흔히 발생하는 제스처 충돌을 해결하며, 실제 프로젝트에서 검증되었습니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- +2
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDawnTransition
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.
관련 프로젝트 살펴보기
불러오는 중…