May 28, 2022 leadbycode

Closure in Swift

 What is Closure in swift ? Closure are the self contained blocks of functionality that can pass around and used in the code. it is function without a func keyword. Consider a function as shown in below snippet Code  func…

Jan 20, 2022 swiftui

Best way to learn swiftUI from Scratch

learn swiftUI from Scratch :SwiftUI, Apple's newest framework, was unveiled at WWDC 19. SwiftUI is an innovative and incredibly simple method to harness the power of Swift to create user experiences for all Apple devices. With only one set of…

Jan 11, 2022 swiftui

What is swiftui AppStorage property wrapper ?

As apple introduced SwiftUI it also changed the use of Userdefault storage as SwiftUI AppStorage as the property wrapper. SwiftUI provides 2 different types of App state they are Appstorage SceneStorage They are basically used to restore the value with…

Dec 21, 2021 swiftui

SwiftUI or StoryBoard what to choose

Today most of the iOS developer are confused on picking SwiftUI or storyboard. Most of the developer are familiar with Interface builder which is known as storyboard which usually uses the XIB . We hope to give the comparision between…

Oct 08, 2021 Stack

How to use vstack align and Layout in SwiftUI

swiftui vstack alignment How can we customise the Vstack align autoLayout in SwiftUI. we are going to code with the SwiftUI alignment with Stack Vstack Spacing in SwiftUI Consider the VStack We can add the Spacing to the VStack. We…

Sep 17, 2021 swiftui

Add the text and image side by using label in SwiftUI

Today We are going to show text and image side by side in SwiftUI.This We can only implement in Xcode 13 and above. Swiftui label image on right To start with we needed to define the Label in the body…

Sep 16, 2021 swiftui

How to add list in SwiftUI for Static items and Dynamic Items

Today  We are going to learn about how to add List in swiftui of Static Items. Initally We will start with the Static items . First we need to define the what are the elements in the list row how…

Sep 02, 2021 swiftui

Swiftui list Selection : Row Selection in SwiftUI

selection list of  Particular Row in SwiftUI. Swift Supports both single selection and as well as multiple Selection in List.Swiftui list Selection Earlier we used to have tableView DidSelect method in Storyboard but now we have list we can add…