vds_ios/VDS/Protocols/Surfaceable.swift
Matt Bruce 78d97fd936 kind of working swatch
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-30 14:36:13 -05:00

22 lines
384 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 : .clear
}
}
public protocol Surfaceable {
var surface: Surface { get set }
}