Skip to content

Commit

Permalink
Set content compression resistance priority to required for titleLabe…
Browse files Browse the repository at this point in the history
…l and facebookConnectButton to prevent them from compressing when the app is in landscape mode. (#2189)

Merging [MBL-1794] Fix compression issue for facebookConnectButton in landscape mode
  • Loading branch information
jovaniks authored Nov 1, 2024
1 parent 3bc5dcd commit 3394de2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ internal final class FindFriendsFacebookConnectCell: UITableViewCell, ValueCell
_ = self.titleLabel
|> UILabel.lens.font .~ .ksr_headline(size: 14)
|> UILabel.lens.textColor .~ .ksr_support_700
|> UILabel.lens.contentCompressionResistancePriority(for: .vertical) .~ .required

_ = self.subtitleLabel
|> UILabel.lens.font .~ .ksr_subhead(size: 12)
Expand All @@ -106,6 +107,7 @@ internal final class FindFriendsFacebookConnectCell: UITableViewCell, ValueCell
|> UIButton.lens.targets .~ [
(self, action: #selector(self.facebookConnectButtonTapped), .touchUpInside)
]
|> UIButton.lens.contentCompressionResistancePriority(for: .vertical) .~ .required
}

// MARK: - Facebook Login
Expand Down

0 comments on commit 3394de2

Please sign in to comment.