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…

Nov 26, 2021 iOS

What is View Controller ? What is its lifecycle?

What is View Controller Life cycle in swift? Ans: View Controller Life cycle swift : View Controllers (VC) are the Controller part of the MVC(Model View Controller) triangle. They are responsible for controlling the view. Every time you want to…

Sep 20, 2021 interview

What is Core Data with Swift Interview Question

 What is Core Data in Swift ? Core Data Stack Core data with swift uses SqLite as  local DataBase Storage in iOS. it is the frameWork used to save, modify and track the data within our application. Core data allows…

Aug 28, 2021 interview

iOS push notification interview questions and Answers

Apple Push Notifications Interview Questions and Answers Here are the apple push notification interview questions for fresher and experience candidate.voip push notifications ios What is NSNotification?   An Object Which Contains information broadcast to registered observers that bridges to the notification.…

Aug 28, 2021 interview

iOS interview Questions swift and Answer : Part 3

 Technical swift interview Question and Answer for iOS developer: Part 3 iOS interview Questions swift and Answer for experience and fresher candidate iOS interview questions swift for experience student for preparation of job interview 1 .What is ARC (Automatic Reference…

May 12, 2024 iOS

How to tell SwiftUI views to bind to nested ObservableObjects

In SwiftUI, you can bind views to nested ObservableObjects by passing those objects down through the view hierarchy. This allows child views to access and modify the properties of the nested observable objects. Here's a step-by-step guide: 1.Define Your ObservableObject…

May 11, 2024 iOS

How to hide keyboard when using SwiftUI?

In SwiftUI, you can hide the keyboard by resigning the first responder status of the current text field. There are a few ways to accomplish this: 1.Using UIApplication.shared.sendAction(_:to:from:for:): You can use the UIApplication method sendAction(_:to:from:for:) to send the resignFirstResponder action…

May 10, 2024 iOS

Load and navigating to next screen not working when coming back to screen in swiftui

Certainly! It seems like you’re facing an issue with navigation in SwiftUI when coming back from a subsequent screen. Let’s explore some possible solutions to address this problem: NavigationLink Approach: If you’re using NavigationLink to navigate to the next screen, ensure that…

May 09, 2024 iOS

How to make a SwiftUI List scroll automatically?

Certainly! If you want to programmatically make a SwiftUI List move to show a specific row, you can achieve this by embedding the List inside a ScrollViewReader. The ScrollViewReader provides a scrollTo() method on its proxy that allows you to specify the ID of the row you want to scroll…

May 02, 2024 iOS

SwiftUI 2: the way to open view in new window

In SwiftUI 2 and later, you can use the WindowGroup and Window APIs to open views in new windows. This allows you to create multi-window experiences in your SwiftUI app. Here's how you can open a view in a new…

May 01, 2024 iOS

How to scroll List programmatically in SwiftUI?

Certainly! In SwiftUI, if you want to programmatically scroll a List to a specific position, you can use the ScrollViewReader. This provides a scrollTo() method that allows you to move to any row inside the list by providing its ID and optionally an anchor12. Here’s how…

Apr 30, 2024 iOS

Using Auto Layout in UITableView for dynamic cell layouts & variable row heights

Certainly! Auto Layout can be used in UITableView to create dynamic cell layouts with variable row heights. This is particularly useful when the content within the cells varies in length and you want the cells to adjust their height accordingly.…

Apr 30, 2024 iOS

How to get the index of the element in the List in SwiftUI when the List is populated with the array?

Certainly! In SwiftUI, you can use the enumerated() function to get the index when looping through a List. Let’s explore how to achieve this: Suppose you have an array of items that you want to display in a List along with their corresponding indices. Here’s…