Back to Browse

Complex JSON & SwiftData - SwiftyWeather Mid-Term Exam Solution

868 views
Nov 19, 2024
1:07:56

This is an actual mid-term & solution from Prof. John Gallaugher's SwiftUI course at Boston College. Students will access the open-meteo free API using URL Session, they'll parse JSON, including complex, nested JSON and arrays. They'll also use SwiftData to save, retrieve, and use Preferences data. While there are many additional techniques that could be used in an app like this, the ones demonstrated here are the ones students have learned at this stage, about 2/3 of the way through the semester. A .pdf copy of this exam can be found at https://bit.ly/prof-g-swiftui-files Students are allowed one 8.5" x 11" piece of paper with any notes they can write or print on it, but the only other help available is that which is baked into Xcode (use of Predictive Code Completion is permitted). Students cannot consult the internet or open old code examples, use other types of AI, etc. The reason for this is to make sure students are sufficiently skilled for code interviews where you can't "look it up". Projects, however, do allow any additional resources to be used. Prof. G's full, award-winning course is available to all, free, at: https://bit.ly/prof-g-swiftui

Download

1 formats

Video Formats

360pmp4124.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Complex JSON & SwiftData - SwiftyWeather Mid-Term Exam Solution | NatokHD