[SwiftUI] error: Cannot convert value of type '.Type' to expected argument type 'Binding<>'


[SwiftUI] error: Cannot convert value of type '.Type' to expected argument type 'Binding<>'

@Binding var framework: AppleFramework ... #Preview { FrameworkDetailView(framework: AppleFramework) } --> #Preview { FrameworkDetailView(framework: .constant(AppleFramework.list[0])) } .constant 에 .list[0] 추가하면 된다....

[SwiftUI] error: Cannot convert value of type '.Type' to expected argument type 'Binding<>'에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


#binding #constant #list #swiftui

원문링크 : [SwiftUI] error: Cannot convert value of type '.Type' to expected argument type 'Binding&lt;&gt;'