From 27ac028bd4a42cbab9392870b6e5b31cd991cfd0 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 13 Jan 2023 10:02:21 -0600 Subject: [PATCH] refactored enum Signed-off-by: Matt Bruce --- .../Buttons/TextLinkCaret/TextLinkCaret.swift | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift index f6fa4a20..7bc0e7dd 100644 --- a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift +++ b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift @@ -11,13 +11,16 @@ import VDSColorTokens import VDSFormControlsTokens import Combine -public enum TextLinkCaretPosition: String, CaseIterable { - case left, right -} - @objc(VDSTextLinkCaret) open class TextLinkCaret: ButtonBase { + //-------------------------------------------------- + // MARK: - Enums + //-------------------------------------------------- + public enum IconPosition: String, CaseIterable { + case left, right + } + //-------------------------------------------------- // MARK: - Private Properties //-------------------------------------------------- @@ -41,7 +44,7 @@ open class TextLinkCaret: ButtonBase { //-------------------------------------------------- public override var availableSizes: [ButtonSize] { [.large] } - open var iconPosition: TextLinkCaretPosition = .right { didSet { didChange() } } + open var iconPosition: IconPosition = .right { didSet { didChange() } } private var height: CGFloat { 44