Skip to content

Commit

Permalink
Remove force layout calls when setting subtitle visibility
Browse files Browse the repository at this point in the history
These calls were added together with dynamic type support, however, they slow down layout process of the cell
  • Loading branch information
staskus committed Jun 21, 2024
1 parent 7684a35 commit 51992ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ private extension CountriesCell {
}

func setSubtitleVisibility() {
subtitleStackView.setNeedsLayout()
let subtitleHeight = subtitlesStackViewTopConstraint.constant * 2 + subtitleStackView.frame.height

if forDetails {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ private extension TopTotalsCell {
/// - Hide the stack view.
///
func setSubtitleVisibility() {
subtitleStackView.setNeedsLayout()

if forDetails {
bottomSeparatorLine.isHidden = true

Expand Down

0 comments on commit 51992ab

Please sign in to comment.