-
Notifications
You must be signed in to change notification settings - Fork 36
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
AI-638: FieldSet Component #2054
Conversation
…er/backpack-ios into chai/AI-638_field-set-component * 'chai/AI-638_field-set-component' of github.com:Skyscanner/backpack-ios: Updated snapshots
* main: AI-638: FieldSet Component (#2053) Add decision doc for accessibility identifiers in UI-tests (#2050) DON-591: Contribute Search Control Input component (#2038) Bump @babel/preset-env from 7.25.3 to 7.25.4 (#2051) Bump rexml from 3.3.3 to 3.3.6 (#2052) # Conflicts: # Backpack-SwiftUI/FieldSet/Classes/BPKFieldSet.swift # Backpack-SwiftUI/FieldSet/Classes/BPKFieldSetState.swift # Backpack-SwiftUI/FieldSet/README.md # Example/Backpack/SwiftUI/Components/FieldSet/FieldSetExampleView.swift
@@ -51,11 +51,12 @@ extension View { | |||
} | |||
|
|||
public struct BPKSelect: View { | |||
@Environment(\.bpkFieldSetState) var wrapperState |
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.
@Environment(\.bpkFieldSetState) var wrapperState | |
@Environment(\.bpkFieldSetState) var fieldSetState |
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 to me! it's a bit weird that we need an 'internal' starte property to hold the actual state of each component, but maybe it's just the name that's puzzling me.
Dispatch state updates using
.environment
instead of calling the.updateState()
. This gives consumers the flexibility to add view modifiers to the wrapped view.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