Skip to main content

Swift UI Design

 //

//  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()

    }

}

}



output:



Comments

Popular posts from this blog

Create Different Login Design Using Python

Design 1: Login Form: Login Form Code:(Copy the code) from tkinter import* root=Tk() root.geometry("300x600+0+0") root.title("Login") layout1=Label(root,bg="#6666FF",height=7,width=37) layout1.pack() layout2=Label(root,bg="white",height=25,width=37) layout2.place(x=0,y=140) canvas = Canvas(root, width = 50, height = 48,bg="#6666FF") canvas.place(x=150,y=40) img = PhotoImage(file="image/User-48.png") canvas.create_image(5,5, anchor=NW, image=img) Login=Label(root,text="Login",bg="#6666FF",fg="white",font="Arial 14 bold") Login.place(x=50,y=50) Email=Label(root,text="Email",bg="white",fg="#FF3399",font="Arial 10") Email.place(x=50,y=200) E1=Entry(root,fg="gray",relief=FLAT) E1.place(x=50,y=250) E1.focus() C = Canvas(root, height=1, width=200,bg="red") line = C.create_line(0,0,10000,100,fill='red'...

SK Political Analytics-About us

புலவர் பழனிசாமி (மாவட்ட இலக்கிய அணி செயலாளர்) HOME            ABOUT US         OUR WORK        IMPACT

SK Political Analytics-Home

புலவர் பழனிசாமி (மாவட்ட இலக்கிய அணி செயலாளர்) HOME          ABOUT  US       OUR WORK        IMPACT