QUESTION IMAGE
Question
which language is used with swiftui?
o a. java
b. kotlin
c. swift
d. objective-c
clear my choice
which phase comes first in the ios app lifecycle?
a. testing
b. deployment
c. idea and planning
d. maintenance
clear my choice
which property wrapper is used for shared global data?
a. @state
b. @observedobject
c. @environmentobject
d. @binding
clear my choice
Brief Explanations
- First question: SwiftUI is a UI framework developed by Apple, and it is designed to work with the Swift programming language. Java is mainly used for Android development (among other things), Kotlin is also an Android - related language (though it can be used in other contexts too), and Objective - C was the traditional language for iOS development before Swift.
- Second question: In the iOS app lifecycle, the first phase is "Idea and Planning". Without a proper idea and plan, there is no basis for testing, deployment, or maintenance. Testing comes after development (which is based on the idea and planning), deployment is after the app is developed and tested, and maintenance is an ongoing process after the app is deployed.
- Third question:
@Stateis used for simple property values that are managed within a single view.@ObservedObjectis used to observe an object that conforms to theObservableObjectprotocol within a view hierarchy.@EnvironmentObjectis specifically designed for sharing global data throughout the app.@Bindingis used for two - way data binding between a parent and child view.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- C. Swift
- C. Idea and Planning
- C. @EnvironmentObject