Maliha SulamanWhat is OOP.? (Object Oriented Programming)Object-Oriented Programming (OOP) is a programming paradigm centered around the concept of “objects” rather than just functions and…Aug 4Aug 4
Maliha SulamanWhat is the situation when we need to use environmentobject in swiftui and how many…In SwiftUI, @EnvironmentObject is used to share data across many views in a SwiftUI app without having to pass the data through the view…Aug 3Aug 3
Maliha SulamanWhy we use @Model in swift and whatIn Swift, @Model is part of the new SwiftData framework, introduced to streamline data management and state persistence in Swift…Aug 2Aug 2
Maliha SulamanWhat is the difference between observedObject and stateObject in SwiftUIn SwiftUI, @ObservedObject and @StateObject are property wrappers used to manage and observe the state of objects that conform to the…Jul 31Jul 31
Maliha SulamanWhy we inherits viewmodel class from ObservableObject and why we make it finalIn SwiftUI, when creating a ViewModel class, inheriting from ObservableObject and making the class final are common practices. Here's why…Jul 31Jul 31
Maliha SulamanWhy we used published in viewmodelUsing @Published in a ViewModel is a core concept in SwiftUI, particularly when employing the MVVM (Model-View-ViewModel) design pattern…Jul 31Jul 31
Maliha SulamanWhat is the purpose of the AppDelegate’s didFinishLaunchingWithOptions method?The application(_:didFinishLaunchingWithOptions:) method in the AppDelegate class plays a crucial role in the lifecycle of an iOS…Jul 29Jul 29
Maliha SulamanWhat is type aliasing in Swift, and why might you use it?Type aliasing in Swift allows you to create an alternative name for an existing type. This can be useful for a number of reasons:Jul 27Jul 27
Maliha SulamanInterview Questions PreparationsExplain the concept of type inference in Swift.?Jul 27Jul 27