Passing variables from swiftUI view to RealityView with custom type.

Hello !

I'm working on an AR project using SwiftUI and RealityKit, and I've encountered a challenge. I need to pass a custom data type from a SwiftUI view to a RealityKit view(Full-Immersion). The data type in question is an Album, defined as follows:

struct Album: Identifiable, Hashable {
    var id = UUID()
    var image: String
    var title: String
    var subTitle: String
}

Please help.