remvoed layoutifneeded

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-04-25 16:39:30 -05:00
parent e330f17474
commit b83dc8c8a2
8 changed files with 2 additions and 14 deletions

View File

@ -114,13 +114,6 @@ open class SelectorBase: Control, SelectorControlable {
accessibilityTraits = .button accessibilityTraits = .button
} }
/// Used to make changes to the View based off a change events or from local properties.
open override func updateView() {
super.updateView()
setNeedsLayout()
layoutIfNeeded()
}
/// Used to update any Accessibility properties.ß /// Used to update any Accessibility properties.ß
open override func updateAccessibility() { open override func updateAccessibility() {
super.updateAccessibility() super.updateAccessibility()

View File

@ -344,7 +344,6 @@ open class BadgeIndicator: View {
label.isEnabled = isEnabled label.isEnabled = isEnabled
label.sizeToFit() label.sizeToFit()
setNeedsLayout() setNeedsLayout()
layoutIfNeeded()
} }
open override func updateAccessibility() { open override func updateAccessibility() {

View File

@ -84,7 +84,7 @@ final class BreadcrumbCellItem: UICollectionViewCell {
separator.textColor = textColorConfiguration.getColor(surface) separator.textColor = textColorConfiguration.getColor(surface)
separator.isHidden = hideSlash separator.isHidden = hideSlash
self.breadCrumbItem = breadCrumbItem self.breadCrumbItem = breadCrumbItem
layoutIfNeeded() setNeedsLayout()
} }
} }

View File

@ -230,7 +230,6 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
setNeedsDisplay() setNeedsDisplay()
setNeedsLayout() setNeedsLayout()
layoutIfNeeded()
} }
open func updateAccessibility() { open func updateAccessibility() {

View File

@ -231,7 +231,6 @@ open class RadioBoxItem: Control, Changeable, FormFieldable {
updateLabels() updateLabels()
setNeedsLayout() setNeedsLayout()
layoutIfNeeded()
} }
/// Used to update any Accessibility properties. /// Used to update any Accessibility properties.

View File

@ -172,7 +172,6 @@ extension Tabs {
label.textAlignment = textAlignment.value label.textAlignment = textAlignment.value
label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable() label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
setNeedsLayout() setNeedsLayout()
layoutIfNeeded()
} }
/// Used to update any Accessibility properties. /// Used to update any Accessibility properties.

View File

@ -403,7 +403,7 @@ open class Tilelet: TileContainerBase<Tilelet.Padding> {
if width != nil && (aspectRatio != .none || height != nil) { if width != nil && (aspectRatio != .none || height != nil) {
updateTextPositionAlignment() updateTextPositionAlignment()
} }
layoutIfNeeded() setNeedsLayout()
} }
/// Used to update any Accessibility properties. /// Used to update any Accessibility properties.

View File

@ -228,7 +228,6 @@ open class ToggleView: Control, Changeable, FormFieldable {
knobTrailingConstraint?.isActive = true knobTrailingConstraint?.isActive = true
knobLeadingConstraint?.isActive = true knobLeadingConstraint?.isActive = true
setNeedsLayout() setNeedsLayout()
layoutIfNeeded()
} }
private func updateToggle() { private func updateToggle() {