Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wxxsw/pop-snapkit

[deprecated] Use SnapKit with the Facebook Pop animation framework.
https://github.com/wxxsw/pop-snapkit

ios pop snapkit swift

Last synced: about 2 months ago
JSON representation

[deprecated] Use SnapKit with the Facebook Pop animation framework.

Awesome Lists containing this project

README

        

# POP-SnapKit
Use SnapKit with the Facebook Pop animation framework. Inspired from [MSSPopMasonry](https://github.com/miklselsoe/MSSPopMasonry)

![](https://github.com/wxxsw/POP-SnapKit/blob/master/screenshot.gif)

## Installation

> **Embedded frameworks require a minimum deployment target of iOS 8.**
>
> To use POP-SnapKit with a project targeting iOS 7, you must to drag `POP+SnapKit.swift` to your iOS Project.

### [CocoaPods](http://cocoapods.org/):

In your `Podfile`:
```
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod "POP+SnapKit"
```

And in your `*.swift`:
```swift
import POP_SnapKit
```

## Use
```Swift
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_add(spring, forKey: "someKey")
```

## Dependencies
- [pop](https://github.com/facebook/pop) (1.0.9) - An extensible iOS and OS X animation library, useful for physics-based interactions.
- [SnapKit](https://github.com/SnapKit/SnapKit) (3.0.2) - A Swift Autolayout DSL for iOS & OS X