samples icon indicating copy to clipboard operation
samples copied to clipboard

SwiftUI/UIViewRepresentable.swift:346: Fatal error: UIViewRepresentables must be value types: PlayerContainerView

Open wyy511511 opened this issue 3 years ago • 2 comments

Thank you!

wyy511511 avatar Oct 19 '22 18:10 wyy511511

same issue, how to resolve?

magdics avatar Jan 11 '23 14:01 magdics

So just I ran into the same issue and you can solve it by changing final class PlayerContainerView to struct PlayerContainerView.

I got inspired by this post: https://developer.apple.com/forums/thread/709433

flofriday avatar Nov 29 '23 12:11 flofriday