Skip to main content

Posts

Showing posts from October, 2023

Swift ui Header

  import SwiftUI import CoreData struct ContentView : View {       var body : some View {     NavigationView {         List ( 1 ..< 100 ) { row in               Text ( "Row \(row) " )           }         .toolbar {             ToolbarItemGroup ( placement : . navigationBarLeading ) {               Text ( "About" )                          }             ToolbarItemGroup ( placement : . navigationBarTrailing ) {                 Image ( systemName : "person" )                          }         }              } ...

Swift UI Default Separator Remove

  // //  ContentView.swift //  test // //  Created by saravana kumar on 18/10/23. // import SwiftUI import CoreData struct ContentView : View {       var body : some View {       List ()     {                  Text ( "saravana" )         Text ( "saravana" )         Text ( "saravana" )     }          . listStyle ( SidebarListStyle ()) } struct ContentView_Previews : PreviewProvider {     static var previews : some View {         ContentView ()     } } } Output:

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 )                     } ...