https://github.com/bryanjclark/reactivecocoa-playground
Experiment with ReactiveCocoa in a Playground, fer learnin'
https://github.com/bryanjclark/reactivecocoa-playground
Last synced: 3 months ago
JSON representation
Experiment with ReactiveCocoa in a Playground, fer learnin'
- Host: GitHub
- URL: https://github.com/bryanjclark/reactivecocoa-playground
- Owner: bryanjclark
- Created: 2016-03-09T18:38:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T18:50:31.000Z (about 9 years ago)
- Last Synced: 2024-12-30T21:24:17.271Z (5 months ago)
- Language: Swift
- Size: 12.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReactiveCocoa-Playground
Experiment with ReactiveCocoa in a Playground, fer learnin'## Overview
There are lots of helpful [docs over in the Reactive Cocoa repo](https://github.com/ReactiveCocoa/ReactiveCocoa/tree/master/Documentation), but sometimes that's not enough. Sometimes you wanna experiment in a playground! That's where this tool comes in.## Getting Started
0. Clone the repo, and run `pod install` in the root directory to have Cocoapods install ReactiveCocoa.
0. Pop open the `.xcworkspace` file here, and check out the playgrounds.## How to Add a Playground
Add a new playground file to the Xcode project (let's call it "Cool New Playground"). Then, open the file `Podfile` and add the playground name, like so:
```
platform :ios, '9.0'
use_frameworks!
link_with 'ReactiveCocoa Playground', 'Hello World', 'Flatten Latest', 'Cool New Playground'pod 'ReactiveCocoa', '~> 4.0'
```Then, just run `pod update`, and you'll be all set!
Make sure to import all these goodies in your playground; you'll probably want 'em:
```
import UIKit
import XCPlayground
import ReactiveCocoa
import enum Result.NoError
```## Acknowledgements
[Little Bites of Cocoa | #138: Using CocoaPods in Xcode Playgrounds](https://littlebitesofcocoa.com/138-using-cocoapods-in-xcode-playgrounds)