added comments for reset()
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
48411cb7c3
commit
0a9b4ec368
@ -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
|
||||
|
||||
@ -75,6 +75,7 @@ open class Badge: View {
|
||||
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -278,6 +278,7 @@ open class BadgeIndicator: View {
|
||||
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -87,6 +87,7 @@ open class TextLink: ButtonBase {
|
||||
}
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
|
||||
@ -200,6 +200,7 @@ open class RadioBoxItem: Control, Changeable {
|
||||
}
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -140,6 +140,7 @@ open class InputField: EntryField, UITextFieldDelegate {
|
||||
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
textField.text = ""
|
||||
|
||||
@ -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 = ""
|
||||
|
||||
@ -189,6 +189,7 @@ open class TileContainer: Control {
|
||||
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -240,6 +240,7 @@ open class Tilelet: TileContainer {
|
||||
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
shouldUpdateView = false
|
||||
aspectRatio = .none
|
||||
|
||||
@ -196,6 +196,7 @@ open class TitleLockup: View {
|
||||
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -172,6 +172,7 @@ open class Toggle: Control, Changeable {
|
||||
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -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
|
||||
|
||||
@ -139,6 +139,7 @@ open class Tooltip: Control, TooltipLaunchable {
|
||||
})
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -77,6 +77,7 @@ open class TrailingTooltipLabel: View, TooltipLaunchable {
|
||||
}
|
||||
}
|
||||
|
||||
/// Resets back to this objects default settings.
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
shouldUpdateView = false
|
||||
|
||||
@ -8,5 +8,6 @@
|
||||
import Foundation
|
||||
|
||||
public protocol Resettable {
|
||||
/// Called to reset back an objects default settings.
|
||||
func reset()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user