-
Notifications
You must be signed in to change notification settings - Fork 121
Fix 'imageEdgeInsets' was deprecated in iOS 15.0 #8129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
33a6f8a
8215b2b
54599ab
e67f70e
3d9760b
ab8288b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -281,7 +281,9 @@ private extension CardPresentPaymentsModalViewController { | |
| func configureAuxiliaryButton() { | ||
|
|
||
| guard shouldShowAuxiliaryButton() else { | ||
| auxiliaryButton.isHidden = true | ||
| // Only for testing, switch back to true before merging | ||
| //auxiliaryButton.isHidden = true | ||
| auxiliaryButton.isHidden = false | ||
| return | ||
| } | ||
|
|
||
|
|
@@ -293,7 +295,9 @@ private extension CardPresentPaymentsModalViewController { | |
| auxiliaryButton.setAttributedTitle(viewModel.auxiliaryAttributedButtonTitle, for: .normal) | ||
| auxiliaryButton.setImage(viewModel.auxiliaryButtonimage, for: .normal) | ||
| if viewModel.auxiliaryButtonimage != nil { | ||
| auxiliaryButton.distributeTitleAndImage(spacing: 8.0) | ||
| var config = UIButton.Configuration.plain() | ||
| config.imagePadding = CGFloat(Constants.buttonTitleAndImageSpacing) | ||
|
||
| auxiliaryButton.configuration = config | ||
| } | ||
| view.layoutIfNeeded() | ||
| } | ||
|
|
@@ -389,6 +393,7 @@ private extension CardPresentPaymentsModalViewController { | |
| static let extraInfoCustomInsets = UIEdgeInsets(top: 12, left: 10, bottom: 12, right: 10) | ||
| static let modalHeight: CGFloat = 382 | ||
| static let modalWidth: CGFloat = 280 | ||
| static let buttonTitleAndImageSpacing: CGFloat = 8 | ||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for convenience when testing the Case 2, has to be removed before merging.