Skip to content

GianniCarlo/Themeable

This branch is 9 commits ahead of latenightswift/night-mode:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

05e38e1 · Feb 8, 2021

History

10 Commits
Oct 29, 2020
Feb 8, 2021
Feb 8, 2021
Oct 29, 2020
Feb 8, 2021
Dec 26, 2018
Oct 29, 2020
Apr 5, 2018
Feb 8, 2021
Apr 5, 2018
Oct 29, 2020

Repository files navigation

Themeable

Themeable provides easy to setup theme management in your app. It doesn't use NotificationCenter.

Installing

Carthage

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.

Swift Package Manager

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"))
]

Usage

  • 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

Packages

No packages published

Languages

  • Swift 97.6%
  • Objective-C 2.4%