added comments for reset()

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-07-26 10:13:49 -05:00
parent 48411cb7c3
commit 0a9b4ec368
25 changed files with 26 additions and 1 deletions

View File

@ -226,6 +226,7 @@ open class SelectorItemBase<Selector: SelectorControlable>: Control, Errorable,
}
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -75,6 +75,7 @@ open class Badge: View {
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -278,6 +278,7 @@ open class BadgeIndicator: View {
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -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

View File

@ -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

View File

@ -87,6 +87,7 @@ open class TextLink: ButtonBase {
}
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -200,6 +200,7 @@ open class RadioBoxItem: Control, Changeable {
}
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -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

View File

@ -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()

View File

@ -140,6 +140,7 @@ open class InputField: EntryField, UITextFieldDelegate {
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
textField.text = ""

View File

@ -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 = ""

View File

@ -189,6 +189,7 @@ open class TileContainer: Control {
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -240,6 +240,7 @@ open class Tilelet: TileContainer {
}
/// Resets back to this objects default settings.
open override func reset() {
shouldUpdateView = false
aspectRatio = .none

View File

@ -196,6 +196,7 @@ open class TitleLockup: View {
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -172,6 +172,7 @@ open class Toggle: Control, Changeable {
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -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

View File

@ -139,6 +139,7 @@ open class Tooltip: Control, TooltipLaunchable {
})
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -77,6 +77,7 @@ open class TrailingTooltipLabel: View, TooltipLaunchable {
}
}
/// Resets back to this objects default settings.
open override func reset() {
super.reset()
shouldUpdateView = false

View File

@ -8,5 +8,6 @@
import Foundation
public protocol Resettable {
/// Called to reset back an objects default settings.
func reset()
}