diff --git a/CatFact/CatFact/CatFactApp.swift b/CatFact/CatFact/CatFactApp.swift index e68c743..1a75544 100644 --- a/CatFact/CatFact/CatFactApp.swift +++ b/CatFact/CatFact/CatFactApp.swift @@ -2,13 +2,11 @@ // CatFactApp.swift // CatFact // -// Created by Ian Jiang on 20/12/2024. -// import SwiftUI @main -struct CatFactApp: App { +struct CatFactsApp: App { var body: some Scene { WindowGroup { ContentView() diff --git a/CatFact/CatFact/ContentView.swift b/CatFact/CatFact/ContentView.swift index 3ca1f1a..ac3923c 100644 --- a/CatFact/CatFact/ContentView.swift +++ b/CatFact/CatFact/ContentView.swift @@ -1,24 +1,81 @@ // -// ContentView.swift -// CatFact -// -// Created by Ian Jiang on 20/12/2024. +// CatFactApp.swift +// ContentView // import SwiftUI +struct CatRow { + var image: UIImage? + var fact: String +} + struct ContentView: View { + @State var rows: [CatRow] = [] + @State var isLoading = false + var body: some View { VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") + ScrollView { + VStack { + ForEach(0..