diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index 27cfa1f4..6cf7d24f 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -14,7 +14,7 @@ import UIKit open class TileContainer: TileContainerBase { /// Enum used to describe the padding choices used for this component. - public enum Padding: EnumValuing { + public enum Padding: DefaultValuing { case padding2X case padding4X case padding6X @@ -43,7 +43,7 @@ open class TileContainer: TileContainerBase { } } -open class TileContainerBase: Control where PaddingType.ValueType == CGFloat { +open class TileContainerBase: Control where PaddingType.ValueType == CGFloat { //-------------------------------------------------- // MARK: - Initializers diff --git a/VDS/Components/Tilelet/Tilelet.swift b/VDS/Components/Tilelet/Tilelet.swift index 77d6c70e..f8a3b4db 100644 --- a/VDS/Components/Tilelet/Tilelet.swift +++ b/VDS/Components/Tilelet/Tilelet.swift @@ -19,7 +19,7 @@ import Combine open class Tilelet: TileContainerBase { /// 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 large diff --git a/VDS/Protocols/DefaultValuing.swift b/VDS/Protocols/DefaultValuing.swift index 5f8bcb72..ffeaf0eb 100644 --- a/VDS/Protocols/DefaultValuing.swift +++ b/VDS/Protocols/DefaultValuing.swift @@ -10,5 +10,3 @@ import Foundation public protocol DefaultValuing: Valuing { static var defaultValue: Self { get } } - -public protocol CGFloatDefaultValuing: DefaultValuing where ValueType == CGFloat {}