[Bug Type of expression is ambiguous without a type annotation] #85
Unanswered
ninaboord
asked this question in
Technical Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In what area do you have a technical challenge?
Xcode, Simulator & Previews
Description
My code is below and the error is happening on line 1 of the code i have attached at the end of this discussion, and it started happening when i began importing things from data with the if statements and for loops... specifically, the error occurred when i added the code:
Code causing the error:
All my code:
Reproduction
see above
Expected behavior
see above
Additional context
I am eventually passing this view into an Image renderer to export as PDF. I am right now turning the hard-coded strings into data items from the enviornment. Note that this issue did NOT occur when I added the code
So it has something to do with the for loops? But then again, adding a regular for loop (i.e. iterating through a list of hard-coded strings) also caused no issues.
Thanks so much!
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions