Skip to content

Commit

Permalink
Update svg
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Nov 26, 2016
1 parent 3141c8f commit 35a76a6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
17 changes: 16 additions & 1 deletion Example/SnowflakeDemo/SnowflakeDemo/Resources/snowflake.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@

## Description

**Snowflake** description.
- SVG in Swift
- Use XML parser from [Reindeer](https://github.com/onmyway133/Reindeer)

## Usage

### Document

```swift
<API>
guard let path = Bundle.main.path(forResource: item, ofType: "svg"),
let data = try? Data(contentsOf: URL(fileURLWithPath: path)),
let document = Snowflake.Document(data: data)
else { return }

let _ = document.svg.view
```

## Installation
Expand All @@ -25,7 +33,8 @@
it, simply add the following line to your Podfile:

```ruby
pod 'Snowflake'
pod 'Reindeer', git: 'https://github.com/onmyway133/Reindeer'
pod 'Snowflake', git: 'https://github.com/onmyway133/Snowflake'
```

**Snowflake** is also available through [Carthage](https://github.com/Carthage/Carthage).
Expand Down

0 comments on commit 35a76a6

Please sign in to comment.