4
4
5
5
<p align =" center " >
6
6
<a href =" https://developer.apple.com/swift " ><img alt =" Swift5 " src =" https://img.shields.io/badge/language-Swift5-orange.svg " /></a >
7
- <a href =" https://github.com/kzumu /Elephant/releases/latest " ><img alt =" Release " src =" https://img.shields.io/github/release/kzumu /Elephant.svg " /></a >
7
+ <a href =" https://github.com/s2mr /Elephant/releases/latest " ><img alt =" Release " src =" https://img.shields.io/github/release/s2mr /Elephant.svg " /></a >
8
8
<a href =" https://cocoapods.org/pods/Carbon " ><img alt =" CocoaPods " src =" https://img.shields.io/cocoapods/v/Elephant.svg " /></a >
9
9
<a href =" https://github.com/Carthage/Carthage " ><img alt =" Carthage " src =" https://img.shields.io/badge/carthage-compatible-yellow.svg " /></a >
10
10
<a href =" https://app.fossa.io/projects/git%2Bgithub.com%2Fkzumu%2FElephant?ref=badge_shield " alt =" FOSSA Status " ><img src =" https://app.fossa.io/api/projects/git%2Bgithub.com%2Fkzumu%2FElephant.svg?type=shield " /></a >
11
11
</br >
12
12
<a href =" https://developer.apple.com/ " ><img alt =" Platform " src =" https://img.shields.io/badge/platform-iOS-green.svg " /></a >
13
- <a href =" https://github.com/kzumu /Elephant/blob/master/LICENSE " ><img alt =" Lincense " src =" https://img.shields.io/badge/License-Apache%202.0-black.svg " /></a >
13
+ <a href =" https://github.com/s2mr /Elephant/blob/master/LICENSE " ><img alt =" Lincense " src =" https://img.shields.io/badge/License-Apache%202.0-black.svg " /></a >
14
14
</p >
15
15
16
16
## Example
17
17
You can run example app. Please open ` Example-iOS/Elephant-iOS.xcworkspace ` !
18
18
19
- <img src =" https://github.com/kzumu /Elephant/raw/resources/Resources/demo.gif " width =" 300 " align =" center " />
19
+ <img src =" https://github.com/s2mr /Elephant/raw/resources/Resources/demo.gif " width =" 300 " align =" center " />
20
20
21
21
## Usage
22
22
You can display the svg image with animation.
23
-
23
+
24
24
** We are supportted two animation formats😎**
25
25
26
- The format is below.
26
+ The format is below.
27
27
- Animation in SVG
28
28
- Animation in CSS
29
29
@@ -60,19 +60,19 @@ class ViewController: UIViewController {
60
60
svgView.heightAnchor .constraint (equalToConstant : 400 ),
61
61
])
62
62
63
- svgView.startAnimation ()
63
+ svgView.startAnimation ()
64
64
65
65
// svgView.stopAnimation() // Stop animation.
66
66
67
67
// svgView.isAnimate { [weak self] (value, error) in
68
68
// if let error = error {
69
69
// print(error)
70
- // }
70
+ // }
71
71
// guard let value = value else { return } // value means whether animation is moving.
72
72
// }
73
73
}
74
74
}
75
-
75
+
76
76
```
77
77
78
78
## Requirements
@@ -81,6 +81,16 @@ class ViewController: UIViewController {
81
81
82
82
## Installation
83
83
84
+ ### [ Swift package manager] ( https://github.com/apple/swift-package-manager )
85
+
86
+ Add the following to the dependencies of your Package.swift:
87
+
88
+ ``` swift
89
+ dependencies: [
90
+ .package (url : " https://github.com/s2mr/Elephant.git" , from : " Elephant version" ),
91
+ ]
92
+ ```
93
+
84
94
### [ CocoaPods] ( https://cocoapods.org )
85
95
Add this to ` Podfile `
86
96
@@ -92,12 +102,11 @@ pod 'Elephant'
92
102
$ pod install
93
103
```
94
104
95
- ### Carthage
96
105
### [ Carthage] ( https://github.com/Carthage/Carthage )
97
106
Add this to ` Cartfile `
98
107
99
108
```
100
- github "kzumu /Elephant"
109
+ github "s2mr /Elephant"
101
110
```
102
111
103
112
``` bash
@@ -113,4 +122,4 @@ $ carthage update --platform ios
113
122
Elephant is available under the Apache v2. See the LICENSE file for more info.
114
123
115
124
116
- [ ![ FOSSA Status] ( https://app.fossa.io/api/projects/git%2Bgithub.com%2Fkzumu %2FElephant.svg?type=large )] ( https://app.fossa.io/projects/git%2Bgithub.com%2Fkzumu %2FElephant?ref=badge_large )
125
+ [ ![ FOSSA Status] ( https://app.fossa.io/api/projects/git%2Bgithub.com%s2mr %2FElephant.svg?type=large )] ( https://app.fossa.io/projects/git%2Bgithub.com%2Fs2mr %2FElephant?ref=badge_large )
0 commit comments