Thread 1, Day 6 - Thursday, October 26, 2023
Agenda
- Warmup: Defining Custom Shapes
- Revisit your understanding of how to define custom shapes.
- Attempt to define a path in the
Arrowstruct so that you can have an app that has this functionality. - First create a new Xcode project named Rotating Arrow.
- Then you can use this code to get started – all you need to do is fill in the
Arrowstructure'spathfunction.
- Activity: Generative Art (SwiftUI) – Part 2 of 3
- More progress on our implementation of these rules using SwiftUI.
- Exercise: Create a "Bento-Box" Layout
- Marketing teams must be able to convey new features in a concise manner to an audience.
- In recent years, Apple has used "Bento-Box" graphics to do so.
- Try to reproduce this image using SwiftUI, or use it as inspiration to design a bento-box themed view related to something you care about.
- Use SwiftUI Views Mastery as a reference.
Hint
Some keywords to look for examples of:
- foregroundStyle
- cornerRadius
- gradient
- Image
Also: the keyboard shortcut
Option-Shift-Kproduces the Apple logo.
Things to do before our next class
-
- sorting algorithms (operations with lists of data)
- generative art (working with control structures)
- Magic 8 Ball (building interfaces and using lists in SwiftUI)
- generative art (in SwiftUI)
- layout in SwiftUI