Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Add sticker picker case study.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Mar 16, 2017
1 parent c5bb410 commit 9415e74
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions README.md
Expand Up @@ -9,8 +9,8 @@
Reactive Motion is a library for creating motion with [reactive programming](http://reactivex.io/)
patterns.

This library includes a variety of ready-to-use **interactions**. Interactions can be used by
creating and a `MotionRuntime` instance:
This library includes a variety of ready-to-use **interactions**. Interactions are registered to an
instance of `MotionRuntime`:

```swift
// Store me for as long as the interactions should take effect.
Expand Down Expand Up @@ -114,14 +114,23 @@ commands:
pod install
open ReactiveMotion.xcworkspace

## Guides
## Case studies

1. [Architecture](#architecture)
2. [How to ...](#how-to-...)
### Sticker picker

### Architecture
<img src="assets/stickerpicker.gif" />

### How to ...
Each sticker is individually **directly manipulable**, meaning they can be dragged, rotated, and
scaled using multitouch gestures.

```swift
let directlyManipulable = DirectlyManipulable()
runtime.add(directlyManipulable, to: <#stickerView#>)

runtime.whenAllAtRest([directlyManipulable]) {
// Store the layer's transform + position
}
```

## Contributing

Expand Down
Binary file added assets/stickerpicker.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9415e74

Please sign in to comment.