vds_ios/VDS/Protocols/Surfaceable.swift
Matt Bruce ea79ed7b64 fixed background color
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-10-10 16:25:10 -05:00

22 lines
411 B
Swift

//
// Surfaceable.swift
// VDS
//
// Created by Matt Bruce on 7/26/22.
//
import Foundation
import UIKit
import VDSColorTokens
public enum Surface: String, Codable, Equatable {
case light, dark
public var color: UIColor {
return self == .dark ? VDSColor.backgroundPrimaryDark : VDSColor.backgroundSecondaryLight
}
}
public protocol Surfaceable {
var surface: Surface { get set }
}