Hydra icon indicating copy to clipboard operation
Hydra copied to clipboard

Importing Hydra in a file where there is a UIViewControllerRepresentable gives compilation errors

Open fabiocody opened this issue 4 years ago • 0 comments

Hi everyone! I'm using Hydra 2.0.6 on iOS on Xcode 13.2.1.

I would like to import Hydra on this file

import SwiftUI

struct VideocallViewControllerWrapper: UIViewControllerRepresentable {
    ...
}

but as soon as I import it, Xcode tells me that Type 'VideocallViewControllerWrapper' does not conform to protocol 'UIViewControllerRepresentable'. I have other files where I have successfully imported both SwiftUI and Hydra. I think the problem is the presence of UIViewControllerRepresentable.

Thank you

fabiocody avatar Jan 11 '22 08:01 fabiocody