SpacePod 22 SwiftUI Multiple Previews plus Device, DisplayName, & InterfaceOrientation

Опубликовано: 08 Октябрь 2024
на канале: Kern Jackson
32
0

Previously we added a "Fetching Pods..." view whenever we don't have any pods to display. This works well enough on iPads, but results in a blank screen on iPhones. Let's fix the problem and add some additional previews along the way.

Code https://github.com/kernjackson/SpacePod
Api https://api.nasa.gov

We'll progressively build a small SwiftUI app that displays the NASA photo of the day. Each video will be broken down into the smallest piece of work that I can imagine at the time.