In the absence of challenges for these later lessons from Module 4 of the iOS Foundation course from CodeWithChris, Lesson 13 provides us with an additional ‘walk-thru’ in how to retrieve data dynamically and how it can be displayed as required on swipe, click, and selections from the user.
There’s no doubt that Swift / SwiftUI has been developed with the end user in mind, but there’s an awful lot of what are called “modifiers” that can change the standard behaviours of just about anything. Trying to remember them would be all but impossible.
This afternoon, I came across a number of instances where Xcode baulked at an error but wasn’t helpful at all in revealing what those errors were.
One particularly annoying error was ‘Failed to produce diagnostic for expression; please submit bug report’. Yes, I’m sure Apple wants hundreds of ‘bug reports’ for what amounts to, after I spent a long time hunting around, brackets not being in the right places.
Anyone with a history of coding knows that errant brackets or missing commas can easily scupper your code, but they shouldn’t be so great that the IDE itself throws up its hands and sends us to Apple. That’s just crazy.
Nevertheless, that aside, I spent most of this afternoon’s lesson typing along with Chris but adding copious amounts of comments in the code in a vain hope that I’ll remember what some of these modifiers and expressions are when I need them. I live in hope!