54 lines
1.3 KiB
Swift
54 lines
1.3 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
|
|
|
|
case bodyLarge
|
|
case bodyMedium
|
|
case bodySmall
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|