|
Unfortunetaly I get the error "Trailing closure passed to parameter of type 'FormStyleConfiguration' that does not accept a closure" and also "'init(:)' declared here (SwiftUI.Form)" in the following code: import SwiftUI struct ExpenseLoggingView: View { @State private var date: Date = Date() @State private var description: String = "" @State private var amount: Double = 0.0 @State private var payer: User?
} struct ExpenseLoggingView_Previews: PreviewProvider { static var previews: some View { ExpenseLoggingView(group: Group(id: UUID(), name: "Sample Group", members: [User(id: UUID(), name: "Alice", email: "alice@example.com"), User(id: UUID(), name: "Bob", email: "bob@example.com")], expenses: [])) } } I would appreciate any help! :) |
|
Can we see the When I comment out the PAYER
|
SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until October 1st.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.