vds_ios/VDS/Protocols/Surfaceable.swift
Matt Bruce 63d5b97de6 refactored color to surface
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-01 12:05:49 -05:00

22 lines
373 B
Swift

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