100 Days of SwiftUI

Day 80

2026-08-02

Project 16, part 2

Result type

Understanding Swift’s Result type

  • Result might hold a string or might hold an error
  • assign a Task to a constant
  • creates a <String, Error> type

Controlling image interpolation in SwiftUI

To avoid having SwiftUI blending stretched pixels (normally makes the stretching less obvious)

Image(.example)
    .interpolation(.none)

Creating context menus

  • more options on pressing a button
  • using .contextMenu modifier
  • if you’re going to use them, use them consistently