We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$_
Xcode Version 13.0 beta 4 (13A5201i)
md5: 825ff2b80b218ae8b4a918c8a887e873
Issue Description:
Create a Xcode SwiftUI iOS app project, paste this into ContentView.swift:
import SwiftUI struct User: Identifiable { let id = UUID() var name: String var isContacted = false } final class Model: ObservableObject { @Published var users: [User] init(_ users: [User]) { self.users = users } } struct ContentView: View { @EnvironmentObject private var model: Model var body: some View { List($model.users) { $user in itemView($_: $user) // <=== !!! Compiler error here: Extraneous argument label '$_:' in call } } func itemView(@Binding _ user: User) -> some View { EmptyView() } }
See https://forums.swift.org/t/for-swiftui-list-rowcontent-how-to-define-a-func-with-a-binding-property-wrapper-as-parameter/50782/9
The text was updated successfully, but these errors were encountered:
#39188
Sorry, something went wrong.
PR merged 🙂
amritpan
No branches or pull requests
Environment
Xcode Version 13.0 beta 4 (13A5201i)
Additional Detail from JIRA
md5: 825ff2b80b218ae8b4a918c8a887e873
Issue Description:
Create a Xcode SwiftUI iOS app project, paste this into ContentView.swift:
See https://forums.swift.org/t/for-swiftui-list-rowcontent-how-to-define-a-func-with-a-binding-property-wrapper-as-parameter/50782/9
The text was updated successfully, but these errors were encountered: