Skip to content

Commit ebc770d

Browse files
committed
2.0.1
1 parent fbe8974 commit ebc770d

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

CircularProgress.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
);
412412
HEADER_SEARCH_PATHS = "$(inherited)";
413413
INFOPLIST_FILE = CircularProgress.xcodeproj/CircularProgress_Info.plist;
414-
MARKETING_VERSION = 2.0.0;
414+
MARKETING_VERSION = 2.0.1;
415415
OTHER_CFLAGS = "$(inherited)";
416416
OTHER_LDFLAGS = "$(inherited)";
417417
OTHER_SWIFT_FLAGS = "$(inherited)";
@@ -439,7 +439,7 @@
439439
);
440440
HEADER_SEARCH_PATHS = "$(inherited)";
441441
INFOPLIST_FILE = CircularProgress.xcodeproj/CircularProgress_Info.plist;
442-
MARKETING_VERSION = 2.0.0;
442+
MARKETING_VERSION = 2.0.1;
443443
OTHER_CFLAGS = "$(inherited)";
444444
OTHER_LDFLAGS = "$(inherited)";
445445
OTHER_SWIFT_FLAGS = "$(inherited)";

CircularProgressMac.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'CircularProgressMac'
3-
s.version = '2.0.0'
3+
s.version = '2.0.1'
44
s.summary = 'Circular progress indicator for macOS apps'
55
s.license = 'MIT'
66
s.homepage = 'https://github.com/sindresorhus/CircularProgress'

readme.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@
66

77
This package is used in production by apps like [Gifski](https://github.com/sindresorhus/Gifski) and [HEIC Converter](https://sindresorhus.com/heic-converter).
88

9-
109
## Requirements
1110

1211
- macOS 10.12+
1312
- Xcode 11+
1413
- Swift 5.1+
1514

16-
1715
## Install
1816

1917
#### SwiftPM
2018

2119
```swift
22-
.package(url: "https://github.com/sindresorhus/CircularProgress", from: "2.0.0")
20+
.package(url: "https://github.com/sindresorhus/CircularProgress", from: "2.0.1")
2321
```
2422

2523
#### Carthage
@@ -34,7 +32,6 @@ github "sindresorhus/CircularProgress"
3432
pod 'CircularProgressMac'
3533
```
3634

37-
3835
## Usage
3936

4037
Also check out the example app in the Xcode project.
@@ -65,6 +62,8 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
6562

6663
### Specify a [`Progress`](https://developer.apple.com/documentation/foundation/progress) instance
6764

65+
The given `Progress` instance is strongly kept alive as long as the `CircularProgress` instance or until you set `.progressInstance = nil`.
66+
6867
```swift
6968
import Cocoa
7069
import CircularProgress
@@ -73,6 +72,7 @@ import CircularProgress
7372
final class AppDelegate: NSObject, NSApplicationDelegate {
7473
@IBOutlet private var window: NSWindow!
7574

75+
let circularProgress = CircularProgress(size: 200)
7676
let progress = Progress(totalUnitCount: 1)
7777

7878
func applicationDidFinishLaunching(_ notification: Notification) {
@@ -192,7 +192,6 @@ Initialize the progress view with a width/height of the given `size`.
192192
convenience init(size: Double) {}
193193
```
194194

195-
196195
## Related
197196

198197
- [DockProgress](https://github.com/sindresorhus/DockProgress) - Show progress in your app's Dock icon
@@ -201,7 +200,6 @@ convenience init(size: Double) {}
201200
- [LaunchAtLogin](https://github.com/sindresorhus/LaunchAtLogin) - Add "Launch at Login" functionality to your macOS app
202201
- [More…](https://github.com/search?q=user%3Asindresorhus+language%3Aswift)
203202

204-
205203
## Maintainers
206204

207205
- [Sindre Sorhus](https://github.com/sindresorhus)

0 commit comments

Comments
 (0)