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

Write in readme about limitations and caveats: refusal of tags #11

Open
borisovodov opened this issue May 7, 2024 · 0 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@borisovodov
Copy link
Owner

borisovodov commented May 7, 2024

In SwiftUI Picker description:

Other examples of when the views in a picker's ForEach need an explicit tag modifier include when you:

  • Select over the cases of an enumeration that conforms to the Identifiable protocol by using anything besides Self as the id parameter type. For example, a string enumeration might use the case's rawValue string as the id. That identifier type doesn't match the selection type, which is the type of the enumeration itself.
  • Use an optional value for the selection input parameter. For that to work, you need to explicitly cast the tag modifier's input as Optional to match. For an example of this, see tag.
@borisovodov borisovodov changed the title Write in readme about limitations and caveats Write in readme about limitations and caveats: refusal of tags May 7, 2024
@borisovodov borisovodov added the documentation Improvements or additions to documentation label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant