A

Admin • 833K Points
Coach

Q. What does `@Binding` do in SwiftUI?

  • (A) Passes a copy of a variable
  • (B) Creates a shared reference to a state variable
  • (C) Creates a local variable
  • (D) Creates a computed property
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

`@Binding` creates a two-way connection between a view and a state variable.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.