Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/wxxsw/pop-snapkit
- Owner: wxxsw
- License: mit
- Created: 2015-06-08T04:24:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-25T08:56:35.000Z (almost 8 years ago)
- Last Synced: 2024-10-12T18:37:03.572Z (2 months ago)
- Topics: ios, pop, snapkit, swift
- Language: Objective-C++
- Homepage:
- Size: 270 KB
- Stars: 22
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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