Dockprogress

Show progress in your app's Dock icon
Alternatives To Dockprogress
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Devdocs Desktop2,993
2 years ago81mitJavaScript
🗂 A full-featured desktop app for DevDocs.io.
Predawn1,843
5 years ago17mitCSS
Predawn is a dark interface and syntax theme for Sublime Text and Atom.
Macos Enterprise Privileges1,122
23 days ago28apache-2.0Objective-C
For Mac users in an Enterprise environment, this app gives the User control over administration of their machine by elevating their level of access to Administrator privileges on macOS. Users can set the time frame using Preferences to perform specific tasks such as install or remove an application.
Dockprogress1,114
20 days ago7December 01, 20203mitSwift
Show progress in your app's Dock icon
Yaru Colors473
2 years ago15gpl-3.0CSS
A fork of Ubuntu's Yaru theme - in different colors
Dotfiles416326 years ago12April 03, 20155otherShell
[DEPRECATED] The first JavaScript-based dotfiles powered by Grunt.
Flat.icns404
5 years ago91Shell
A flat icon set for OS X
Afloatx272
a month ago11Objective-C
An alternative to Afloat that lives in the dock icon menu
Sublime Text Icon152
7 years ago3
A replacement icon for Sublime Text 2 and Sublime Text 3
Winc149
a month ago8mitGo
Common library for Go GUI apps on Windows
Alternatives To Dockprogress
Select To Compare


Alternative Project Comparisons
Readme

DockProgress

Show progress in your app's Dock icon

Requirements

macOS 10.15+

Install

Add https://github.com/sindresorhus/DockProgress in the Swift Package Manager tab in Xcode.

Latest version: 4.2.2

API

See the API docs.

Usage

Manually set the progress

import DockProgress

foo.onUpdate = { progress in
	DockProgress.progress = progress
}

Specify a Progress instance

import Foundation
import DockProgress

let progress = Progress(totalUnitCount: 1)
progress?.becomeCurrent(withPendingUnitCount: 1)

DockProgress.progressInstance = progress

The given Progress instance is weakly stored. It's up to you to retain it.

Styles

It comes with five styles. PR welcome for more.

Check out the example app in the Xcode project.

You can also draw a custom progress with .custom(drawHandler: (_ rect: CGRect) -> Void).

Bar

import DockProgress

DockProgress.style = .bar

This is the default.

Squircle

import DockProgress

DockProgress.style = .squircle(color: .white.withAlphaComponent(0.5))

By default, it should perfectly fit a macOS 11 and later icon, but there is an inset parameter if you need to make any adjustments.

Circle

import DockProgress

DockProgress.style = .circle(radius: 55, color: .systemBlue)

Badge

import DockProgress

DockProgress.style = .badge(color: .systemBlue, badgeValue: { getDownloadCount() })

Large badgeValue numbers will be written in kilo short notation, for example, 1012 1k.

Note: The badgeValue is not meant to be used as a numeric percentage. It's for things like count of downloads, number of files being converted, etc.

Pie

import DockProgress

DockProgress.style = .pie(color: .systemBlue)

Related

Popular Icon Projects
Popular Dock Projects
Popular User Interface Components Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Swift
Icon
Xcode
Progress
Progress Bar
Dock
Swift Package
Progress Circle