V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
Draven
V2EX  ›  分享创造

DKChainableAnimationKit 使用链式语法为 iOS swift 应用添加动画 //view.animation.makeScale(2.0).spring.animate(1.0)

  •  1
     
  •   Draven ·
    draveness · 2015-05-16 01:08:11 +08:00 · 2479 次点击
    这是一个创建于 3275 天前的主题,其中的信息可能已经有所发展或是发生改变。


    DKChainableAnimationKit 是对 UIView 和 CAAnimation 的封装. 它是一个 DSL, 能够帮助你更快的构建动画.




    DKChainableAnimationKit

    使用 DKChainableAnimationKit, 你不需要再写冗长的 UIView 动画.

    view.animation.makeScale(2.0).spring.animate(1.0)
    

    源代码戳这里

    2 条回复    2015-05-16 21:46:52 +08:00
    hoogle
        1
    hoogle  
       2015-05-16 12:52:17 +08:00
    不错。。 想写个类似 obj-c 的。
    Draven
        2
    Draven  
    OP
       2015-05-16 21:46:52 +08:00
    @hoogle objc 的已经有了. 这个是就是移植的原objc 代码.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   952 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:32 · PVG 07:32 · LAX 16:32 · JFK 19:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.