Skip to content

Commit

Permalink
Demo playground.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Nash committed Sep 23, 2016
1 parent 7cdff1d commit 4e52985
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,3 +6,4 @@ M13Checkbox.xcodeproj/xcuserdata/
M13Checkbox.xcworkspace/
Pods/
Podfile.lock
Playground/LaunchMe.xcworkspace/xcuserdata/*
10 changes: 10 additions & 0 deletions Playground/LaunchMe.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions Playground/Playground.playground/Contents.swift
@@ -0,0 +1,14 @@
//: Playground - noun: a place where people can play

import M13Checkbox
import PlaygroundSupport

let checkbox = M13Checkbox(frame: CGRect(x: 0.0, y: 0.0, width: 250.0, height: 250.0))
checkbox.backgroundColor = .white
checkbox.tintColor = .yellow
checkbox.secondaryTintColor = .green
checkbox.secondaryCheckmarkTintColor = .red
checkbox.checkmarkLineWidth = 2.0
checkbox.stateChangeAnimation = .bounce(.fill)

PlaygroundPage.current.liveView = checkbox
4 changes: 4 additions & 0 deletions Playground/Playground.playground/contents.xcplayground
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='5.0' target-platform='ios'>
<timeline fileName='timeline.xctimeline'/>
</playground>
4 changes: 4 additions & 0 deletions Readme.md
Expand Up @@ -118,6 +118,10 @@ Check out the demo app to change the properties of the checkbox and see the chan

##Getting Started

###Demo

To see a working playground in action, run the workspace located at path Playground/LaunchMe.xcworkspace. You may need to run the framework scheme and wait for Xcode to process the files, before the playground begins. Open the assistant editor for a live preview of the UI.

### Installation

#### Cocoapods
Expand Down

0 comments on commit 4e52985

Please sign in to comment.