I have a View that takes a Binding field of type String. I would like to pass the field of a propertywrapper that is an object. Is this possible?
@Binding var commentDto: CommentDto? // has a field called text
var body: some View {
CustomTextField(text: $commentDto.text) // this gives error as field text, of $commentDto, is not available when using wrapper
}