Category: swiftui
Sep 02, 2021 swiftui
how to use multiple font size text in SwiftUI
Use multiple Font text in swiftui fonts In swift we used to add two different label for different font. this can be achieved in swiftui fonts. We can add this in below format in SwiftUI. struct ContentView: View { …
Aug 30, 2021 swiftui
How Can we implement Pull to refresh in SwiftUI
Pull to Refresh in SwiftUI Earlier in storyboard we were used to UIRefreshControl() which was using this observer we would load the tableview by calling the tableViewreloadata() let refreshControl = UIRefreshControl() override func viewDidLoad() { super.viewDidLoad() refreshControl.attributedTitle =…
Aug 24, 2021 swiftui
How to swift load image from url in SwiftUI
How to load a remote image from a URL in SwiftUI As Apple introduce SwiftUI in WWDC 2020 the .SwiftUI decided to use the AsyncImage to swift load image from url when the image is downloaded from the URL or…
Aug 22, 2021 swiftui
How to Pass Data between View in SwiftUI
Passing the data form one View to another in SwiftUI Pass Data between View in SwiftUI Before SwiftUI was introduce data passing was in ViewController was with Segue, Delegate and instant Properties. As Apple introduce SwiftUI it replaced the…
Aug 20, 2021 swiftui
How Can we use Swiftui slider
Use of Slider in SwiftUI SWiftUI Slider : Earlier in Xcode we were using Slider in Storyboard or Xib.But As Apple Introduce SwiftUI Use of UIKit and Storyboard has been Depreciated in SwiftUI. We can use the SwiftUI Slider in…
Aug 20, 2021 swiftui
How To use AppDelegate In SwiftUI
How To Add AppDelegate In SwiftUI Today we going to start use of AppDelegate In SwiftUI. As inWWDC 2020 Apple does not provide default AppDelagate in swiftUI anymore. Xcode has come up with the App instead of AppDelegate. We can…
Aug 19, 2021 Stack
How to use Stack in SwiftUI
Stack in SwiftUI Today we are going to start with use of the Stack in SwiftUI. As Apple has introduce SwiftUI the use of Storyboard and Xib has been eliminated.Thus to construct the View SwiftUI has introduce Stack in the…
Jul 29, 2021 swiftui
How to create a TableView in SwiftUI using List and VStack
Hi Guys Today we going to start with Add the TableView using SwiftUI. At WWDC 2020 Apple introduce SwiftUI LazyVStack . we can develop the Tableview using List as well as VStack. Lets start with the TableView in SwiftUI using…