Files
OpenSourceController/Sources/OpenSourceControllerConfig.swift
T
2019-11-11 16:56:30 +01:00

40 lines
1.1 KiB
Swift

//
// OpenSourceControllerConfig.swift
// Pods
//
// Created by Florian Gabach on 08/03/2017.
import UIKit
/// Simple struct to hold settings
public struct OpenSourceControllerConfig {
/// Sub-stuct holding configuration relevant to UI presentation !
public struct UIConfig {
/// Will be applied to the navigation bar
public var backgroundColor: UIColor = Style.background
/// Will be applied to licence text
public var licenceBackgroundColor: UIColor = Style.background
/// Will be applied to the navigation bar
public var closeButtonColor: UIColor = Style.label
/// Will be applied to licence text
public var licenceTextColor: UIColor = Style.label
/// Will be applied to licence text
public var titleColor: UIColor = Style.label
}
/// Will be applied to the navigation bar title
public var title: String = "Tiers library"
/// Verbose mode for print log when licence are downloaded
public var verbose: Bool = false
/// UI-specific configuration.
public var uiConfig = UIConfig()
}