Apr 22, 2023 iOS

SwiftUI interview questions and answer

Q1: What is SwiftUI? A: SwiftUI is a framework provided by Apple to build user interfaces for their platforms such as iOS, macOS, tvOS, and watchOS. It is based on the declarative programming paradigm, which means you describe the user…

Apr 04, 2023 iOS

How to display SwiftUI sheet Half screen

To present a SwiftUI sheet that takes up half of the screen, you can use the .sheet(isPresented:onDismiss:content:) modifier with a custom View that conforms to the View protocol. Here's an example: struct ContentView: View { @State private var isPresented =…

Mar 09, 2023 iOS

SwiftUI CollectionView using Vgrid

A native collection view wasn't included in SwiftUI's CollectionView original release. Using third party libraries or creating your own solution are also options. Apple unveiled a tonne of new SwiftUI framework capabilities at this year's WWDC. One of them is…

Jan 17, 2023 iOS

How to get the Flutter Device name

Welcome to the LeadByCode .Today we are going to learn about How to get flutter device name as well as Device info. In general, developing a mobile application is a difficult and time-consuming process. There are various frameworks available that…

Jan 17, 2023 iOS

Flutter interview questions and answers

1.What is Flutter and what are its advantages? Flutter is an open-source mobile app development SDK created by Google. It uses the Dart programming language and allows developers to build high-performance, cross-platform applications for iOS and Android with a single…

Nov 21, 2022 iOS

What is NSURLSession & URL Session and Networking?

 What is NSURLSession? How is it used? Ans: NSURLConnection became obsolete and the new Apple standard for implementing HTTP networking is NSURLSession. NSURLSession and related classes do a lot of heavy lifting for basic HTTP connection and authentication for you.…

Oct 15, 2022 iOS

How to use Swiftui searchable

The SwiftUI searchable () tweak adds a search bar directly to a NavigationView, which will either remain fixed for simple layouts or appear and scroll when used with a list. Prior to iOS 15, SwiftUI did not have a built-in…

Oct 11, 2022 iOS

How to use SwiftUI AsyncImage

How to use SwiftUI AsyncImage : Images and videos power almost all contemporary apps and websites. All of the visuals you see on social networking, entertainment, and commerce applications come from a backend source. Since several backend calls are required…