Hopefully this may help some of you. Im using Xcode 14.0
I had this same issue when building previews. I had added 2 swift packages via the built in spm in Xcode and was getting the error.
Removing them from the target -> Frameworks & Libraries solved the issue for me and the preview showed as expected and the product also built successfully.
Hi Robby, I can't see all your code, but from the error message I would check you satisfy the protocol, which means its expecting some methods and you may have some missing.
Right click on UIViewRepresentable -> Jump to definition
This should give you an idea of what is expected.
Hopefully this may help some of you. Im using Xcode 14.0
I had this same issue when building previews. I had added 2 swift packages via the built in spm in Xcode and was getting the error.
Removing them from the target -> Frameworks & Libraries solved the issue for me and the preview showed as expected and the product also built successfully.
Hi Robby, I can't see all your code, but from the error message I would check you satisfy the protocol, which means its expecting some methods and you may have some missing.
Right click on UIViewRepresentable -> Jump to definition
This should give you an idea of what is expected.