My text "Line1" has too much space below it. I would like to move the image up more but not sure how to get rid of all that space? This is for a small widget so would love to hear any advice on how to get it to resize properly for all devices!
var body: some View {
ZStack {
Color("GoodBackground")
VStack(alignment: .leading) {
HStack {
Text("Line1")
.foregroundColor(Color("Orange"))
.bold()
.font(.system(size: 17.5))
.padding(.top)
Spacer()
Image("CheckmarkWhiteCircle25x25")
.padding(.top)
}
.padding()
VStack(alignment: .leading) {
Image("WidgetMachine67x30")
Text("State")
.foregroundColor(Color("Toolstext"))
.font(.system(size: 15))
//.font(family == .systemLarge ? .title :
// .headline)
.padding(.top, family == .systemLarge ? -15
: 0)
Text("Last update 4.16.2021")
.foregroundColor(Color("Toolstext"))
.font(.system(size: 10))
.opacity(0.5)
Spacer()
Spacer()
}
.padding()
}
}