SpriteKit marble animations demonstrating ReactiveCocoa methods.
Marbles are a time-honoured method of teaching RX concepts. This repository includes a Swift 2 Playground with animated marble views to allow experimentation with ReactiveCocoa 4 signals.
- Clone or download the repo
- Run
carthage checkout
, orgit submodule init && git submodule update
- Open the workspace (not the playground!)
- Build the 'ReactiveMarbles-OSX' scheme
- Open one of the Playground pages, show the Assistant Editor (and choose 'Timeline' if necessary).
- No iOS framework - iOS Playgrounds are limited to only one live view, which makes these somewhat less useful.
- The private XCPlayground.framework is bundled in the repository. This may not work with different versions of Xcode (currently built for Xcode 7)
- The frame rate is pretty awful on slower Macs.
I’m also not a seasoned ReactiveCocoa expert, and some of this code may be incorrect/misleading/non-idiomatic/crap. I’d gratefully appreciate corrections and/or PRs. There’s probably also more work that can be done in the Playground support to make it a bit more useful & natural to experiment with.
Licensed under the terms of the ISC license.