Skip to content

Commit

Permalink
[Tab] Fix merge conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-zimmermann committed May 30, 2024
1 parent 2d35c95 commit dfec759
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/Sources/Components/Tab/View/UIKit/TabItemUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ public final class TabItemUIView: UIControl {
set {
if newValue {
self.accessibilityTraits.insert(.selected)
}else {
} else {
self.accessibilityTraits.remove(.selected)
}
guard newValue != self.viewModel.isSelected else { return }
self.viewModel.updateState(isSelected: newValue)
}
}
Expand Down Expand Up @@ -253,11 +252,10 @@ public final class TabItemUIView: UIControl {
set {
if newValue {
self.accessibilityTraits.remove(.notEnabled)
}else {
} else {
self.accessibilityTraits.insert(.notEnabled)
}
guard newValue != self.viewModel.isEnabled else { return }
self.viewModel.isEnabled = newValue
self.viewModel.updateState(isEnabled: newValue)
}
}

Expand Down

0 comments on commit dfec759

Please sign in to comment.