Recreating the Sandwiches SwiftUI WWDC Code
Without the Hot Dogs References
And we are trying to recreate the WWDC code to create the following:
Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12.0, and Swift 5.3
SwiftUI: A simple way to build user interfaces across Apple platforms
You will be expected to be aware how to make a SwiftUI project
With that all said, let’s get started!
This setup gives us a new project; I’ve called mine “RecreateSandwiches” but you are free to call yours whatever you would like.
I will then show the classes that I’ve created in turn. If you’d like to skip to the repo.
Oh, and note that the iPad version works in portrait rather than landscape mode.
ContentView and SandwichCell
If you’d like to go through the WWDC Video you’ve now got the code to help you!
This is a good thing for everyone concerned, and I’ll leave my repo up for people use in the future.
If you’ve any questions, comments or suggestions please hit me up on Twitter