|
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:
|
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.