|
I am trying to display text stored in an array and it's showing the error
Here is the data structure it is reading from:
Thanks in advance for your help. |
|
You would use
which is the equivalent of this:
Also, you should not name properties using capital letters. Capitalized names are for types; start property and function names with a lowercase letter. So...
You can even see that the syntax coloring applied by the forums colors names differently if they start with a capital letter versus starting with a lowercase letter. Because those conventions—while being only convention, not a rule—have meaning in Swift. |
|
Thank you. I have renamed
I receive the error When I attempt to use
I get the error |
|
Then your
However that will fail as Either
or
If you use the
|
|
When I try both the |
|
This uses Edit:
|
|
Unless I'm missing something that's what I already have, and is producing the error, because I've already changed |
|
Try cleaning your build folder. See if that helps. Also, did you try copying and pasting the code I uploaded? |
|
I have cleared the build folder, and the only difference between your code and mine is that I'm calling
in the |
SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.