im running into a brick wall… I have tried everything including starting from your start file you have to download. The final works but when I try to build it from the video I run into a problem. Please watch/build it and tell me if you run into the same error.
The screenshots aren’t very helpful since they don’t indicate what/where the error is. If you can post the contents of the Xcode console (the window in the bottom left corner) after you have the crash, that should indicate what the issue is.
I think I figured out why your code is failing For your detail view controller, instead of using a sub-class of UIViewController as per the tutorial, you might have used a sub-class of UITableViewController.
Check the declaration for the view controller - if you check your files listing against the final project you should see that you have a file named DetailTableViewController.swift which seems to indicate that you have a sub-class of UITableViewController and not UIViewController. If you fix that bit, your code should work fine. I followed the tutorial and everything worked fine for me.
All update you on my progress when I get to it tomorrow or the next day. Thank you so much! Do you have a ethereum account? I would like to give you something for helping out so much bud.
Happy to help - I’m part of the rw.com team and so it’s all part of the service That should fix the issue for you but if it doesn’t or if you see any additional issues, just post what you’re seeing and I’ll try to help.
It is indeed just a matter of personal style in this case would be my opinion since whether you use if let or guard both are about the same level of Swift-y-ness Personally, I prefer if let since that is less code and also makes it clear that the rest of the stuff happens only if the if let is successful - but that’s me. You can always use guard if that’s what you prefer
At the end you added a new check (check for segue identifier), I think that it’s not necessary because you are checking and casting for specific destination controller (and it is unique).