refactored due to the DefaultValueing change

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-08-15 15:42:10 -05:00
parent d0c40aaeca
commit 393b791a40
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import Combine
open class TileContainer: TileContainerBase<TileContainer.Padding> {
/// Enum used to describe the padding choices used for this component.
public enum Padding: DefaultValuing {
public enum Padding: DefaultValuing, Valuing {
case padding3X
case padding4X
case padding6X
@ -44,7 +44,7 @@ open class TileContainer: TileContainerBase<TileContainer.Padding> {
}
}
open class TileContainerBase<PaddingType: DefaultValuing>: View where PaddingType.ValueType == CGFloat {
open class TileContainerBase<PaddingType: DefaultValuing & Valuing>: View where PaddingType.ValueType == CGFloat {
//--------------------------------------------------
// MARK: - Initializers

View File

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