Swiftpack.co - Package - ChimeHQ/Dusk

Carthage compatible

Dusk

Dusk is a micro-framework to aid in supporting Dark Mode on macOS. It is particularly useful for applications that use full-window themeing, or need to support OSes earlier than 10.14.

Integration

Carthage:

github "ChimeHQ/Dusk"

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/ChimeHQ/Dusk.git")
]

Classes

AppearanceObserver

A very simple class that will observe effective appearance changes and post a notification when triggered. Useful when created within an NSApplication delegate for application-wide notifciations.

NSAppearance Extensions

Querying:

appearance.isDark

appearance.oppositeAppearance

Suggestions or Feedback

We'd love to hear from you! Get in touch via twitter, an issue, or a pull request.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Github

link
Stars: 1
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

1.0.0 - Jun 2, 2019

First Release!