0% found this document useful (0 votes)
36 views2 pages

Swiftui - Quick Demo

Uploaded by

Isaiah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

Swiftui - Quick Demo

Uploaded by

Isaiah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

import SwiftUI

struct IsabellesView: View {


var body: some View {
NavigationView{

VStack{

VStack{
Text("My name is Gabriela! I am 22 years old :)")

Image("confident1C")
.resizable()
.frame(width: 100, height: 100)

Button(action: {
UIImpactFeedbackGenerator(style: .soft).impactOccurred()
}, label: {
Image("breakfast1A")
.resizable()
.frame(width: 100, height: 100)
})

Spacer()

Button(action: {
UIImpactFeedbackGenerator(style: .heavy).impactOccurred()
}, label: {
Image("productive1C")
.resizable()
.frame(width: 100, height: 100)
})

}.background(Color.blue)

HStack{
Text("My name is Isabelle! I am 8 years old :)")
Spacer()

Image("blessed1C")
.resizable()
.frame(width: 100, height: 100)

}.background(Color.yellow)
}
.border(.blue)
.padding(30)
.frame(maxHeight: .infinity)
.background(
Color.pink.opacity(0.6)
)
}
}
}

#Preview {
IsabellesView()
}

You might also like