forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] Refactor usage of UIButton.contentEdgeInsets Pt 4
Background: UIButton.contentEdgeInsets is deprecated as of iOS 15. As part of the effort of bumping the min version of iOS to 15, we refactor the usage of UIButton.contentEdgeInsets and replace it with UIButton.configuration.contentInsets. A particular issue in creating this CL was that documentation gives the idea that contentEdgeInsets, titleEdgeInsets, and imageEdgeInsets should be replaced by contentInsets. We are asking the CL reviewer to verify that this is correct. Additionally, we use compile guards instead of @available because we get deprecation warnings with @available. This may be because @available is checked at runtime and these warnings happen during compiling. Bug: 1406561 Change-Id: I394cc39d44164b260bc4210d892691331395da85 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4284418 Commit-Queue: Joemer Ramos <joemerramos@chromium.org> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/main@{#1111905}
- Loading branch information
Joemer Ramos
authored and
Chromium LUCI CQ
committed
Mar 1, 2023
1 parent
c848cf6
commit ba4e832
Showing
6 changed files
with
120 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters