Sign in
Back to list
SSamOctober 30Public content
SwiftUI

SwiftUI PathWay

Views, structures, and properties

Customize views with properties

import SwiftUI


struct ContentView: View {
    var body: some View {
        HStack {
            VStack {
                Text("Mon")
                Image(systemName: "sun.max.fill")
                    .foregroundStyle(Color.yellow)
                Text("High: 70")
                Text("Low: 50")
            }
            .padding()
            
            VStack {
                Text("Tue")
                Image(systemName: "cloud.rain.fill")
                    .foregroundStyle(Color.blue)
                Text("High: 60")
                Text("Low: 40")
            }
            .padding()
        }
    }
}


#Preview {
    ContentView()
}

Discussion 0

No comments yet.

Verify your email to join the discussion.

Your email is used for verification and abuse prevention. It will not be public.