icanzilb

EasyAnimation

icanzilb

A Swift library to take the power of UIView.animateWithDuration(_:, animations:...) to a whole new level - layers, springs, chain-able animations and mixing view and layer animations together!

AI 简介

EasyAnimation 是一个 Swift 动画增强库,扩展 UIKit 原生 UIView.animate API 的能力,使其支持直接对 CALayer 属性(如 position、opacity、transform)进行声明式动画,同时提供弹簧动画、链式动画及视图与图层动画混合控制功能。其核心特点是零语法侵入——启用后无需修改调用方式,仅需在 AppDelegate 中调用一次 EasyAnimation.enable() 即可复用熟悉的 animate(duration:animations:) 接口;所有实现基于公开 API,兼容 App Store 上架。适用于 iOS/macOS 应用中需要简化复杂图层动画逻辑、提升动画开发效率的场景。

Swift
MIT License
2.9k
Stars
197
Forks
68
Watchers
9
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分58.89
默认分支master