Beginner
Swift
Q37 / 100
What does the some keyword do (opaque type)?
Correct! Well done.
Incorrect.
The correct answer is B) Declares an opaque return type — the function returns a specific but unnamed conforming type
B
Correct Answer
Declares an opaque return type — the function returns a specific but unnamed conforming type
Explanation
var body: some View in SwiftUI returns a specific concrete type that conforms to View, without revealing the exact type to callers.
Progress
37/100