Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwang-imvu committed Jun 10, 2018
1 parent 917c000 commit abee83c
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@ A simple and elegant UIKit(Chart) for iOS, written in Swift.

</p>

## Installation

### CocoaPods
Add to your Podfile:
```
use_frameworks!
pod 'HamsterUIKit'
```
Type in terminal:
```
pod install
```

Import the framework
```
import HamsterUIKit
```

## Protocols
### Initialize and reload
| UITableView | HamsCurveChart | HamsBarChart |
Expand All @@ -48,11 +30,46 @@ import HamsterUIKit
| :--- | :--- |
| curveChart(_ curveChart: HamsCurveChart, configureForCharts chart: Int) | barChart(_ barChart: HamsBarChart, configureForCharts chart: Int) |


## Installation

<!--### CocoaPods
1. Add to your Podfile:
```
use_frameworks!
pod 'HamsterUIKit'
```
2. Type in terminal:
```
pod install
```
3. Import the framework
```
import HamsterUIKit
```-->

### Manually

``` sh
git clone https://github.com/Haneke/HanekeSwift.git
```
0. Copy and paste the above command in your terminal, it will clone the repo into your disk.
1. Drag `HamsterUIKit.xcodeproj` to your project in the _Project Navigator_.
2. Select your project and then your app target. Open the _Build Phases_ panel.
3. Expand the _Target Dependencies_ group, and add `HamsterUIKit.framework`.
4. Click on the `+` button at the top left of the panel and select _New Copy Files Phase_. Set _Destination_ to _Frameworks_, and add `HamsterUIKit.framework`.
5. `import HamsterUIKit` whenever you want to use Haneke.


## Demo
[Bar Chart Demo](https://github.com/ChromieIsDangerous/HamsterUIKit/blob/master/HamsterUIKitExample/BarChartViewController.swift)

[Curve Chart Demo](https://github.com/ChromieIsDangerous/HamsterUIKit/blob/master/HamsterUIKitExample/HamsCurveChartController.swift)

## Advanced Configuration
### Bar Chart


## Bar Chart Quick start
<p align="center">
<img src="Img/QuickStart.png" height="200" style="margin-right: 10px;margin-bottom: 10px;"></p>
Expand Down

0 comments on commit abee83c

Please sign in to comment.