44.15 Designing the Content View
The user interface for the app is going to consist of a single Image view on which will be displayed the first photo taken on the day chosen by the user via Siri voice commands. Edit the ContentView.swift file and modify it so that it reads as follows:
import SwiftUI
struct ContentView: View {
@StateObject var photoHandler: PhotoHandler
var body: some View {
Image(uiImage: photoHandler.image!)
.resizable()
.aspectRatio(contentMode: .fit)
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static...