refactored due to the DefaultValueing change
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d0c40aaeca
commit
393b791a40
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user