You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-25Lines changed: 26 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ For first-hand experience, just open the project and run it.
35
35
36
36
### Cocoapods
37
37
38
-
Install Cocoapods if need be.
38
+
Install [Cocoapods](https://cocoapods.org/#install) if need be.
39
39
40
40
```bash
41
41
$ gem install cocoapods
@@ -49,14 +49,25 @@ use_frameworks!
49
49
pod 'NVActivityIndicatorView'
50
50
```
51
51
52
+
If you're using `NVActivityIndicatorView` in an app extension, use `NVActivityIndicatorView/AppExtension` instead.
53
+
54
+
```ruby
55
+
use_frameworks!
56
+
57
+
pod 'NVActivityIndicatorView/AppExtension'
58
+
```
59
+
52
60
Then, run the following command.
53
61
54
62
```bash
55
63
$ pod install
56
64
```
65
+
66
+
_**Note:** Please refer to the migration note for version [`3.7.0`](#version-370) below._
67
+
57
68
### Carthage
58
69
59
-
Install Carthage if need be.
70
+
Install [Carthage](https://github.com/Carthage/Carthage#installing-carthage) if need be.
60
71
61
72
```bash
62
73
$ brew update
@@ -69,7 +80,7 @@ Add `NVActivityIndicatorView` in your `Cartfile`.
69
80
github "ninjaprox/NVActivityIndicatorView"
70
81
```
71
82
72
-
Run `carthage` to build the framework and drag the built `NVActivityIndicatorView.framework` into your Xcode project.
83
+
Run `carthage` to build the framework and drag the built `NVActivityIndicatorView_iOS.framework`, `NVActivityIndicatorViewAppExtension_iOS.framework` or `NVActivityIndicatorView_tvOS.framework` into your Xcode project.
73
84
74
85
_**Note:** You might encounter compile issue, if so please use `carthage` branch instead. Check issue [#101](https://github.com/ninjaprox/NVActivityIndicatorView/issues/101) for more information._
75
86
@@ -83,6 +94,10 @@ _**Note:** If you encounter issues while uploading the app to iTunes Connect, re
83
94
84
95
## Migration
85
96
97
+
### Version 4.4.0
98
+
99
+
This version requires Xcode 10.1 and Swift 4.2.
100
+
86
101
### Version 4.0.0
87
102
88
103
This version requires Xcode 9.0 and Swift 4.
@@ -91,41 +106,27 @@ This version requires Xcode 9.0 and Swift 4.
91
106
92
107
This version splits `NVActivityIndicatorView` pod to 2 subpods `NVActivityIndicatorView/Presenter` and `NVActivityIndicatorView/AppExtension`. There is no need to change `pod NVActivityIndicatorView` to `pod NVActivityIndicatorView/Presenter` since it will be installed by default if you use the main pod name.
93
108
94
-
However, if you want to use `NVActivityIndicatorView` in app extension, use `pod NVActivityIndicatorView/AppExtension` instead.
109
+
However, if you want to use `NVActivityIndicatorView` in an app extension, use `pod NVActivityIndicatorView/AppExtension` instead.
95
110
96
111
_**Note:** Related issue [#119](https://github.com/ninjaprox/NVActivityIndicatorView/issues/119)._
97
112
98
-
### Version 3.6.0
99
-
100
-
This version requires Xcode 8.3 and Swift 3.1.
101
-
102
-
### Version 3.0
103
-
104
-
This version requires Xcode 8.0 and Swift 3.
105
-
106
-
-`NVActivityIndicatorView.startAnimation()` and `NVActivityIndicatorView.stopAnimation()` are deleted. Use `NVActivityIndicatorView.startAnimating()` and `NVActivityIndicatorView.stopAnimating()` instead.
107
-
-`UIViewController.startActivityAnimating()` and `UIViewController.stopActivityAnimating()` are deleted. Use `UIViewController.startAnimating()` and `UIViewController.stopAnimating()` instead.
108
-
109
-
### Version 2.0
110
-
111
-
This version continues to spport Xcode 7.0 and Swift 2.2 and earlier.
112
-
For Swift 2.3 support, use `swift2.3` branch instead.
113
-
114
-
```ruby
115
-
pod 'NVActivityIndicatorView', :git => 'https://github.com/ninjaprox/NVActivityIndicatorView.git', :branch => 'swift2.3'
116
-
```
117
-
118
113
## Usage
119
114
120
115
Firstly, import `NVActivityIndicatorView`.
121
116
122
117
```swift
118
+
// If you're using CocoaPods
123
119
importNVActivityIndicatorView
120
+
121
+
// If you're using Carthage
122
+
importNVActivityIndicatorView_iOS// for NVActivityIndicatorView_iOS.framework
123
+
importNVActivityIndicatorView_tvOS// for NVActivityIndicatorView_tvOS.framework
124
+
importNVActivityIndicatorViewAppExtension_iOS// for NVActivityIndicatorViewAppExtension_iOS.framework
124
125
```
125
126
126
127
### Initialization
127
128
128
-
Then, there are two ways you can create NVActivityIndicatorView:
129
+
Then, there are two ways you can create `NVActivityIndicatorView`:
129
130
130
131
- By storyboard, changing class of any `UIView` to `NVActivityIndicatorView`.
0 commit comments