//
// ContentView.swift
// test
//
// Created by saravana kumar on 18/10/23.
//
import SwiftUI
import CoreData
struct ContentView: View {
@State private var selectedValue = "One"
let counts = ["One", "Two", "Three"]
var body: some View
{
List() {
HStack
{
Text("Add Paln")
.foregroundColor(Color.gray)
.font(.system(size: 36))
Spacer()
Image(systemName: "xmark")
.foregroundColor(Color.red)
}
Divider()
GroupBox
{
HStack
{
Text("Session 1")
.font(.system(size: 24))
Spacer()
Image(systemName: "trash")
.foregroundColor(Color.red)
}
HStack
{
Text("Work Type")
.padding(.top,10)
.font(.system(size: 18))
Spacer()
}
HStack
{
Text("Select")
Spacer()
Picker("Selection", selection: $selectedValue) {
ForEach(counts, id: \.self) {
Text($0)
}
}
}
}
}
.listStyle(SidebarListStyle())
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
}
Comments
Post a Comment