skip to Main Content

Xcode – Why do the elements inside my VStack inside a HStack still go vertical

So basically this is my code. Text("Melbourne, Victoria") .font(.largeTitle) .fontWeight(.bold) .foregroundColor(Color.white) .padding(.bottom, 30) Image(systemName: "moon.fill") .foregroundColor(Color.white) .font(.system(size: 60)) Text("Today") .font(.title) .fontWeight(.medium) .foregroundColor(Color.white) Text("34°C") .font(.title3) .fontWeight(.medium) .foregroundColor(Color.white) Spacer() HStack { Image(systemName: "sun.max.fill") .foregroundColor(Color.yellow) .font(.system(size: 40)) .padding(.bottom, 550) Text("Mon 34°C") .font(.title) .fontWeight(.medium)…

VIEW QUESTION
Back To Top
Search