Repository navigation
Conversation
| .accessibilityIdentifier(AccessibilityIdentifiers.title) | ||
| .foregroundColor(titleColor) | ||
| .font(titleFont) | ||
| } else { |
Collaborator
There was a problem hiding this comment.
I think we can tighten this up a bit -- could we either (A) make it always an HStack and then just vary the items in it, or (B) move some of this out to one or two @ViewBuilder blocks?
My main goal is to remove the duplicate modifiers as much as possible, since that's an easy place to end up with bugs.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Platforms Impacted
Description of changes
Introduces the option to use a
TextFieldin aListIteminstead of justText.Textview.The Demo Controller will now feature an editable text toggle that lets you see what the ListItemCell looks like when the text is editable.
Note: This change also includes a refactor to make
ListItemTitleTrailingAccessorya struct to prevent invalid combinations of titleTrailingAccessory where we are given an acessibilty string but not an image.Breaking Change
The migration to ListItemTitleTrailingAccessory is a breaking change but no consumers should have adopted this new API yet so this should be safe.
Binary change
(how is our binary size impacted -- see https://github.com/microsoft/fluentui-apple/wiki/Size-Comparison)
Verification
(how the change was tested, including both manual and automated tests)
Visual Verification
Pull request checklist
This PR has considered:
Microsoft Reviewers: Open in CodeFlow