V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
Draven

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

  •  1
     
  •   Draven ·
    draveness · May 16, 2015 · 3288 views
    This topic created in 4000 days ago, the information mentioned may be changed or developed.


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




    DKChainableAnimationKit

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

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

    源代码戳这里

    2 replies    2015-05-16 21:46:52 +08:00
    hoogle
        1
    hoogle  
       May 16, 2015
    不错。。 想写个类似 obj-c 的。
    Draven
        2
    Draven  
    OP
       May 16, 2015
    @hoogle objc 的已经有了. 这个是就是移植的原objc 代码.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1058 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 18:53 · PVG 02:53 · LAX 11:53 · JFK 14:53
    ♥ Do have faith in what you're doing.