Skip to content

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

@fabiocody

Description

@fabiocody

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions