updated enums

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-01 14:46:41 -06:00
parent 275a57d510
commit 317173917f
3 changed files with 3 additions and 5 deletions

View File

@ -14,7 +14,7 @@ import UIKit
open class TileContainer: TileContainerBase<TileContainer.Padding> { open class TileContainer: TileContainerBase<TileContainer.Padding> {
/// Enum used to describe the padding choices used for this component. /// Enum used to describe the padding choices used for this component.
public enum Padding: EnumValuing { public enum Padding: DefaultValuing {
case padding2X case padding2X
case padding4X case padding4X
case padding6X case padding6X
@ -43,7 +43,7 @@ open class TileContainer: TileContainerBase<TileContainer.Padding> {
} }
} }
open class TileContainerBase<PaddingType: EnumValuing>: Control where PaddingType.ValueType == CGFloat { open class TileContainerBase<PaddingType: DefaultValuing>: Control where PaddingType.ValueType == CGFloat {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Initializers // MARK: - Initializers

View File

@ -19,7 +19,7 @@ import Combine
open class Tilelet: TileContainerBase<Tilelet.Padding> { open class Tilelet: TileContainerBase<Tilelet.Padding> {
/// Enum used to describe the padding choices used for this component. /// Enum used to describe the padding choices used for this component.
public enum Padding: String, EnumValuing, CaseIterable { public enum Padding: String, DefaultValuing, CaseIterable {
case small case small
case large case large

View File

@ -10,5 +10,3 @@ import Foundation
public protocol DefaultValuing: Valuing { public protocol DefaultValuing: Valuing {
static var defaultValue: Self { get } static var defaultValue: Self { get }
} }
public protocol CGFloatDefaultValuing: DefaultValuing where ValueType == CGFloat {}