This PR adds support for customization using a TatsiColors protocol. It also adds great support for dark mode by default which might even take away the need to apply custom styling.
[x] Dark mode support
[x] Color customization
[x] Readme updated
[x] Schemes added to the example project to make it easier to build
Adding customized colors
This can simply be done by using the TatsiConfig.default.colors property which defaults to TatsiDefaultColors(). Simply create your custom struct applying to the TatsiColors protocol:
/// Defines colors that will be applied to the Tatsi elements.
public protocol TatsiColors {
var background: UIColor { get }
var secondaryBackground: UIColor { get }
var tint: UIColor { get }
var label: UIColor { get }
var secondaryLabel: UIColor { get }
}
This PR adds support for customization using a
TatsiColors
protocol. It also adds great support for dark mode by default which might even take away the need to apply custom styling.Adding customized colors
This can simply be done by using the
TatsiConfig.default.colors
property which defaults toTatsiDefaultColors()
. Simply create your custom struct applying to theTatsiColors
protocol:Albums overview
Recents