Skip to content
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

Merged
merged 16 commits into from
Aug 29, 2024
Merged

AI-638: FieldSet Component #2054

merged 16 commits into from
Aug 29, 2024

Conversation

AlaaAmrAmin
Copy link
Contributor

@AlaaAmrAmin AlaaAmrAmin commented Aug 27, 2024

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:

If you are curious about how we review, please read through the code review guidelines

Alaa Amin and others added 12 commits August 26, 2024 11:40
…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
@AlaaAmrAmin AlaaAmrAmin added swiftui minor Non breaking change labels Aug 27, 2024
@AlaaAmrAmin AlaaAmrAmin requested a review from frugoman August 27, 2024 13:11
@@ -51,11 +51,12 @@ extension View {
}

public struct BPKSelect: View {
@Environment(\.bpkFieldSetState) var wrapperState
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Environment(\.bpkFieldSetState) var wrapperState
@Environment(\.bpkFieldSetState) var fieldSetState

@AlaaAmrAmin AlaaAmrAmin marked this pull request as draft August 27, 2024 14:23
@AlaaAmrAmin AlaaAmrAmin marked this pull request as ready for review August 29, 2024 10:16
Copy link
Contributor

@frugoman frugoman left a 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.

@frugoman frugoman merged commit f77ef9b into main Aug 29, 2024
14 checks passed
@frugoman frugoman deleted the chai/AI-638_field-set-component branch August 29, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Non breaking change swiftui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants