diff --git a/VDS/Classes/SelectorItemBase.swift b/VDS/Classes/SelectorItemBase.swift index 9575f7a2..b9f659bd 100644 --- a/VDS/Classes/SelectorItemBase.swift +++ b/VDS/Classes/SelectorItemBase.swift @@ -226,6 +226,7 @@ open class SelectorItemBase: Control, Errorable, } } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Badge/Badge.swift b/VDS/Components/Badge/Badge.swift index da8ff792..321753f9 100644 --- a/VDS/Components/Badge/Badge.swift +++ b/VDS/Components/Badge/Badge.swift @@ -75,6 +75,7 @@ open class Badge: View { } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/BadgeIndicator/BadgeIndicator.swift b/VDS/Components/BadgeIndicator/BadgeIndicator.swift index 748025e2..d35b7187 100644 --- a/VDS/Components/BadgeIndicator/BadgeIndicator.swift +++ b/VDS/Components/BadgeIndicator/BadgeIndicator.swift @@ -278,6 +278,7 @@ open class BadgeIndicator: View { } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Buttons/Button/Button.swift b/VDS/Components/Buttons/Button/Button.swift index 3ac084fa..be1a7cec 100644 --- a/VDS/Components/Buttons/Button/Button.swift +++ b/VDS/Components/Buttons/Button/Button.swift @@ -130,6 +130,7 @@ open class Button: ButtonBase, Useable { heightConstraint?.isActive = true } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Buttons/Button/ButtonBase.swift b/VDS/Components/Buttons/Button/ButtonBase.swift index a3bd1941..054c10b3 100644 --- a/VDS/Components/Buttons/Button/ButtonBase.swift +++ b/VDS/Components/Buttons/Button/ButtonBase.swift @@ -135,6 +135,7 @@ open class ButtonBase: UIButton, Buttonable, Handlerable, ViewProtocol, Resettab } + /// Resets back to this objects default settings. open func reset() { shouldUpdateView = false surface = .light diff --git a/VDS/Components/Buttons/TextLink/TextLink.swift b/VDS/Components/Buttons/TextLink/TextLink.swift index f604cad9..573665e0 100644 --- a/VDS/Components/Buttons/TextLink/TextLink.swift +++ b/VDS/Components/Buttons/TextLink/TextLink.swift @@ -87,6 +87,7 @@ open class TextLink: ButtonBase { } } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift index ad95a4af..c7c14e74 100644 --- a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift +++ b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift @@ -79,6 +79,7 @@ open class TextLinkCaret: ButtonBase { accessibilityTraits = .link } + /// Resets back to this objects default settings. open override func reset() { super.reset() iconPosition = .right diff --git a/VDS/Components/Icon/ButtonIcon/ButtonIcon.swift b/VDS/Components/Icon/ButtonIcon/ButtonIcon.swift index 12db5a56..5d7c63ba 100644 --- a/VDS/Components/Icon/ButtonIcon/ButtonIcon.swift +++ b/VDS/Components/Icon/ButtonIcon/ButtonIcon.swift @@ -253,6 +253,7 @@ open class ButtonIcon: Control { iconLayoutGuide.trailingAnchor.constraint(equalTo: trailingAnchor)]) } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Icon/Icon.swift b/VDS/Components/Icon/Icon.swift index 7983d7c9..b1cb3c0b 100644 --- a/VDS/Components/Icon/Icon.swift +++ b/VDS/Components/Icon/Icon.swift @@ -62,6 +62,7 @@ open class Icon: View { accessibilityTraits = .image } + /// Resets back to this objects default settings. open override func reset() { super.reset() color = VDSColor.paletteBlack diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 203e669d..f2f83116 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -111,6 +111,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable { open func setup() {} + /// Resets back to this objects default settings. open func reset() { shouldUpdateView = false surface = .light diff --git a/VDS/Components/Line/Line.swift b/VDS/Components/Line/Line.swift index 417fb077..18bb485f 100644 --- a/VDS/Components/Line/Line.swift +++ b/VDS/Components/Line/Line.swift @@ -40,6 +40,7 @@ open class Line: View { lineView.pinToSuperView() } + /// Resets back to this objects default settings. open override func reset() { super.reset() style = .primary diff --git a/VDS/Components/Notification/Notification.swift b/VDS/Components/Notification/Notification.swift index 20d39096..de382de3 100644 --- a/VDS/Components/Notification/Notification.swift +++ b/VDS/Components/Notification/Notification.swift @@ -228,6 +228,7 @@ open class Notification: View { subTitleLabel.textColorConfiguration = textColorConfiguration.eraseToAnyColorable() } + /// Resets back to this objects default settings. open override func reset() { super.reset() diff --git a/VDS/Components/RadioBox/RadioBoxItem.swift b/VDS/Components/RadioBox/RadioBoxItem.swift index 380383b9..74e2f574 100644 --- a/VDS/Components/RadioBox/RadioBoxItem.swift +++ b/VDS/Components/RadioBox/RadioBoxItem.swift @@ -200,6 +200,7 @@ open class RadioBoxItem: Control, Changeable { } } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/RadioSwatch/RadioSwatch.swift b/VDS/Components/RadioSwatch/RadioSwatch.swift index 8178f971..465aef71 100644 --- a/VDS/Components/RadioSwatch/RadioSwatch.swift +++ b/VDS/Components/RadioSwatch/RadioSwatch.swift @@ -88,7 +88,8 @@ open class RadioSwatch: Control { fillView.width(fillSize.width) } - + + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/TextFields/EntryField/EntryField.swift b/VDS/Components/TextFields/EntryField/EntryField.swift index 0a280ffb..eb43ba49 100644 --- a/VDS/Components/TextFields/EntryField/EntryField.swift +++ b/VDS/Components/TextFields/EntryField/EntryField.swift @@ -228,6 +228,7 @@ open class EntryField: Control, Changeable { return containerView } + /// Resets back to this objects default settings. open override func reset() { super.reset() titleLabel.reset() diff --git a/VDS/Components/TextFields/InputField/InputField.swift b/VDS/Components/TextFields/InputField/InputField.swift index acbec3ec..6b25c7e1 100644 --- a/VDS/Components/TextFields/InputField/InputField.swift +++ b/VDS/Components/TextFields/InputField/InputField.swift @@ -140,6 +140,7 @@ open class InputField: EntryField, UITextFieldDelegate { } + /// Resets back to this objects default settings. open override func reset() { super.reset() textField.text = "" diff --git a/VDS/Components/TextFields/TextArea/TextArea.swift b/VDS/Components/TextFields/TextArea/TextArea.swift index 31ade50c..9064c9fc 100644 --- a/VDS/Components/TextFields/TextArea/TextArea.swift +++ b/VDS/Components/TextFields/TextArea/TextArea.swift @@ -79,6 +79,7 @@ open class TextArea: EntryField { textView.delegate = self } + /// Resets back to this objects default settings. open override func reset() { super.reset() textView.text = "" diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index 0fb735fe..6b5eef20 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -189,6 +189,7 @@ open class TileContainer: Control { } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Tilelet/Tilelet.swift b/VDS/Components/Tilelet/Tilelet.swift index c91c7eba..9cc2e938 100644 --- a/VDS/Components/Tilelet/Tilelet.swift +++ b/VDS/Components/Tilelet/Tilelet.swift @@ -240,6 +240,7 @@ open class Tilelet: TileContainer { } + /// Resets back to this objects default settings. open override func reset() { shouldUpdateView = false aspectRatio = .none diff --git a/VDS/Components/TitleLockup/TitleLockup.swift b/VDS/Components/TitleLockup/TitleLockup.swift index 6381fed5..9fd0f6b6 100644 --- a/VDS/Components/TitleLockup/TitleLockup.swift +++ b/VDS/Components/TitleLockup/TitleLockup.swift @@ -196,6 +196,7 @@ open class TitleLockup: View { } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Toggle/Toggle.swift b/VDS/Components/Toggle/Toggle.swift index ba718598..1d9b77b0 100644 --- a/VDS/Components/Toggle/Toggle.swift +++ b/VDS/Components/Toggle/Toggle.swift @@ -172,6 +172,7 @@ open class Toggle: Control, Changeable { } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Toggle/ToggleView.swift b/VDS/Components/Toggle/ToggleView.swift index 917d4676..db07e66d 100644 --- a/VDS/Components/Toggle/ToggleView.swift +++ b/VDS/Components/Toggle/ToggleView.swift @@ -136,6 +136,7 @@ open class ToggleView: Control, Changeable { open override var intrinsicContentSize: CGSize { toggleSize } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Tooltip/Tooltip.swift b/VDS/Components/Tooltip/Tooltip.swift index fd75c610..585ab355 100644 --- a/VDS/Components/Tooltip/Tooltip.swift +++ b/VDS/Components/Tooltip/Tooltip.swift @@ -139,6 +139,7 @@ open class Tooltip: Control, TooltipLaunchable { }) } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Components/Tooltip/TrailingTooltipLabel.swift b/VDS/Components/Tooltip/TrailingTooltipLabel.swift index 220cb2f3..00cbc8f3 100644 --- a/VDS/Components/Tooltip/TrailingTooltipLabel.swift +++ b/VDS/Components/Tooltip/TrailingTooltipLabel.swift @@ -77,6 +77,7 @@ open class TrailingTooltipLabel: View, TooltipLaunchable { } } + /// Resets back to this objects default settings. open override func reset() { super.reset() shouldUpdateView = false diff --git a/VDS/Protocols/Resetable.swift b/VDS/Protocols/Resetable.swift index 6dde1028..528cba1d 100644 --- a/VDS/Protocols/Resetable.swift +++ b/VDS/Protocols/Resetable.swift @@ -8,5 +8,6 @@ import Foundation public protocol Resettable { + /// Called to reset back an objects default settings. func reset() }