Themeable
provides easy to setup theme management in your app. It doesn't use NotificationCenter.
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate DirectoryWatcher into your Xcode project using Carthage, specify it in your Cartfile
:
github "GianniCarlo/Themeable" ~> 1.0.0
Run carthage update
to build the framework and drag the built Themeable.framework
into your Xcode project.
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding DirectoryWatcher as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/GianniCarlo/Themeable.git", .upToNextMajor(from: "1.1.0"))
]
- Provide a theme manager that conforms to the protocol
ThemeProvider
. - Any object that you want to react to the change of the new theme, should conform to the protocol
Themeable