-
Notifications
You must be signed in to change notification settings - Fork 1k
Refactor collapsing list view to be reusable. #5048
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
base: master
Are you sure you want to change the base?
Conversation
🚨 New dead code detected in this PR: LinkCollapsingListView.swift:98 warning: Parameter 'sender' is unused
LinkPaymentMethodListView-Cell.swift:252 warning: Parameter 'sender' is unused
LinkPaymentMethodListView.swift:132 warning: Parameter 'animated' is unused
PayWithLinkViewController-WalletViewModel.swift:25 warning: Property 'shippingAddresses' is assigned, but never used Please remove the dead code before merging. If this is intentional, you can bypass this check by adding the label ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with |
df2b246
to
79e8b9d
Compare
updateAccessibilityContent() | ||
} | ||
} | ||
|
||
// Indicates whether the header should appear collapsable or not. | ||
// The header is collapsable when the currently selected payment method is supported. |
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.
Do we need to change this comment?
// The header is collapsable when the currently selected payment method is supported. | |
// The header is collapsable when the currently selected item is supported. |
let stackView = UIStackView(arrangedSubviews: [ | ||
]) |
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.
let stackView = UIStackView(arrangedSubviews: [ | |
]) | |
let stackView = UIStackView() |
override func updateAccessibilityContent() { | ||
super.updateAccessibilityContent() | ||
if isExpanded { | ||
accessibilityLabel = collapsedLabel.text |
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.
Should it not be headingLabel
?
Summary
This change refactors the collapsing list functionality to be reusable. This is in preparation to display shipping addresses in the native link view.
Demo
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-06-25.at.15.35.26.mp4