Skip to content

Commit

Permalink
Update Readme adding example
Browse files Browse the repository at this point in the history
  • Loading branch information
cruisediary committed May 5, 2017
1 parent ed81201 commit becc025
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Example/Pastel.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 3YN6YPP3YC;
INFOPLIST_FILE = Pastel/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
Expand All @@ -519,6 +520,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 3YN6YPP3YC;
INFOPLIST_FILE = Pastel/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,23 @@ Instagram like Gradient background animation
![pastel_03.gif](README/Pastel_03.gif)

## Example
```swift
override func viewDidLoad() {
super.viewDidLoad()

let pastelView = PastelView(frame: view.bounds)
pastelView.setColors(colors: [.blue, .white, .black]) // set custom colors
pastelView.addColor(color: .red)
pastelView.animationDuration = 2.5
pastelView.startAnimation()
view.insertSubview(pastelView, at: 0)
}
```

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements
Pastel is written in Swift 3. iOS 8.0+ Required

## Installation

Expand Down

0 comments on commit becc025

Please sign in to comment.