|
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:
|
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
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.