-
Notifications
You must be signed in to change notification settings - Fork 37
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
DON-1029 segmented control custom #2141
Conversation
Snapshots were updated. Please verify the changes match the expected layout.
|
…ithub.com/Skyscanner/backpack-ios into donburi/DON-1029-segmented-control-custom
Snapshots were updated. Please verify the changes match the expected layout.
|
…ithub.com/Skyscanner/backpack-ios into donburi/DON-1029-segmented-control-custom
struct SegmentedControlExampleView: View { | ||
@State var selectedIndex = 0 | ||
private let accessibilityLabel = "bpk_segmented_control_example" | ||
private let items: [String] = ["1", "2", "3", "4"] |
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.
I think it's worth to add different text options, not only with short strings like those, but also with longer content inside.
That is not really required, but it would be good to add
Snapshots were updated. Please verify the changes match the expected layout.
|
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.
Looks good 🚀 Nice work
We just need to have one-final commit to verify snapshots
…ithub.com/Skyscanner/backpack-ios into donburi/DON-1029-segmented-control-custom
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.
LGT RALP
Created new segmented control component
Added documentation, tests and screenshots
Jira ticket: DON-1029
Figma design: https://www.figma.com/design/irZ3YBx8vOm16ICkAr7mB3/Backpack-Components?m=auto&node-id=49086-3871&t=pQApQKbd31dMaLrK-1
Remember to include the following changes:
README.md
Backpack.h
header fileIf you are curious about how we review, please read through the code review guidelines