Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1020 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 1020 Bytes

POP-SnapKit

Use SnapKit with the Facebook Pop animation framework. Inspired from MSSPopMasonry

Installation

Open your project in Xcode, then drag 'POP+SnapKit.swift' onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.

Use

circle.snp_makeConstraints { make in
    self.radiusConstaint = make.width.equalTo(self.radius * 2).constraint
}

let spring = POPSpringAnimation(propertyNamed: kPOPLayoutConstraintConstant)
spring.toValue = newValue * 2
self.radiusConstaint?.layoutConstraint?.pop_addAnimation(spring, forKey: "someKey")

Dependencies

  • pop (1.0.9) - An extensible iOS and OS X animation library, useful for physics-based interactions.
  • SnapKit (0.20.0) - A Swift Autolayout DSL for iOS & OS X