diff --git a/todoapp/Assets.xcassets/image1.imageset/Contents.json b/todoapp/Assets.xcassets/image1.imageset/Contents.json new file mode 100644 index 0000000..28840ca --- /dev/null +++ b/todoapp/Assets.xcassets/image1.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "image1.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} \ No newline at end of file diff --git a/todoapp/Assets.xcassets/image1.imageset/image1.png b/todoapp/Assets.xcassets/image1.imageset/image1.png new file mode 100644 index 0000000..4434057 Binary files /dev/null and b/todoapp/Assets.xcassets/image1.imageset/image1.png differ diff --git a/todoapp/ContentView.swift b/todoapp/ContentView.swift index 3a78a7d..803702a 100644 --- a/todoapp/ContentView.swift +++ b/todoapp/ContentView.swift @@ -10,10 +10,15 @@ import SwiftUI struct ContentView: View { var body: some View { VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") + Image("image1") + .resizable() + .aspectRatio(contentMode: .fit) + .frame(maxHeight: 300) + .cornerRadius(12) + .shadow(radius: 5) + Text("Professional Office Background") + .font(.headline) + .padding(.top) } .padding() } diff --git a/todoapp/view/homeView/HomeView.swift b/todoapp/view/homeView/HomeView.swift index 3a78a7d..803702a 100644 --- a/todoapp/view/homeView/HomeView.swift +++ b/todoapp/view/homeView/HomeView.swift @@ -10,10 +10,15 @@ import SwiftUI struct ContentView: View { var body: some View { VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") + Image("image1") + .resizable() + .aspectRatio(contentMode: .fit) + .frame(maxHeight: 300) + .cornerRadius(12) + .shadow(radius: 5) + Text("Professional Office Background") + .font(.headline) + .padding(.top) } .padding() }