We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Im looking to create an icon picker, and tried this:
ForEach(Awesome.Brand) { item in // }
But this gives an error: Cannot convert value of type 'Awesome.Brand.Type' to expected argument type 'Range<Int>'
Cannot convert value of type 'Awesome.Brand.Type' to expected argument type 'Range<Int>'
I also tried:
private var icons = [Awesome.Brand.apple, Awesome.Brand.google] ... ForEach(icons) { item in /// }
But that gives another error: Referencing initializer 'init(_:content:)' on 'ForEach' requires that 'Awesome.Brand' conform to 'Identifiable'
Referencing initializer 'init(_:content:)' on 'ForEach' requires that 'Awesome.Brand' conform to 'Identifiable'
Is there anyway to do this? Could the creator just add Identifiable to the icon groups? Im still new so not sure if that's the solution here.
Identifiable
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Im looking to create an icon picker, and tried this:
But this gives an error:
Cannot convert value of type 'Awesome.Brand.Type' to expected argument type 'Range<Int>'
I also tried:
But that gives another error:
Referencing initializer 'init(_:content:)' on 'ForEach' requires that 'Awesome.Brand' conform to 'Identifiable'
Is there anyway to do this? Could the creator just add
Identifiable
to the icon groups? Im still new so not sure if that's the solution here.Thanks
The text was updated successfully, but these errors were encountered: