|
I am not sure why but in the Bundle-Decodable file the last guard is getting triggered.
I don't know if you need it to help me but here is all of my code, ContentView:
Color-Theme
Astronaut
Bundle-Decodable
Mission
|
|
You don't know what's triggering it because you are converting the error to an Instead of this:
do this:
and you will see what the error is. |
|
I replaced my code with yours, but now I get an error message
on the "Cannot convert return expression of type 'Bool' to return type 'T'" |
|
@ndnyzed I believe that's because you left the return on the code, you should delete it in order to work the do and catch. I got fatalerror on my code and what helped me to figure it out was this:
|
SAVE 50% To celebrate WWDC22, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
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.