vds_ios/VDS/Components/TitleLockup/TitleLockupTextStyle.swift
Matt Bruce 98968bacbd refactored out top/bottom spacing config and created new one
updated models to use a StandardStyle
updated Tilelet/TitleLockup to use new features

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-06-29 12:06:28 -05:00

50 lines
1.2 KiB
Swift

//
// TitleLockupTextStyle.swift
// VDS
//
// Created by Matt Bruce on 1/6/23.
//
import Foundation
extension TitleLockup {
//--------------------------------------------------
// MARK: - Enums
//--------------------------------------------------
public enum TitleStandardStyle: String, CaseIterable {
case featureMedium
case featureSmall
case featureXSmall
case title2XLarge
case titleXLarge
case titleLarge
case titleMedium
case titleSmall
public var defaultValue: TextStyle.StandardStyle {.featureXSmall }
public var value: TextStyle.StandardStyle {
TextStyle.StandardStyle(rawValue: self.rawValue) ?? defaultValue
}
}
public enum OtherStandardStyle: String, CaseIterable {
case bodySmall
case bodyMedium
case bodyLarge
case titleSmall
case titleMedium
case titleLarge
case titleXLarge
public var defaultValue: TextStyle.StandardStyle { .bodyLarge }
public var value: TextStyle.StandardStyle {
TextStyle.StandardStyle(rawValue: self.rawValue) ?? defaultValue
}
}
}