RealityView Ambiguous use of... in Beta 8 of Xcode

Using Xcode 15 Beta 8 and RealityView with make, update, placeholder and attachments I get the error message "Ambiguous use of 'init(make:update:placeholder:attachments:)'" which didn't occur in Beta 7 and visionOS Beta 2.

The most basic version (just make) of RealityView works perfectly fine.

Is there a workaround for this?

Answered by ThiloJaeggi in 763216022

Just found out that it has to do with Attachments, inside the attachments closure it's now required to use the Attachment struct like this:

Attachment(id: id) {
     Text("Test")
}
Accepted Answer

Just found out that it has to do with Attachments, inside the attachments closure it's now required to use the Attachment struct like this:

Attachment(id: id) {
     Text("Test")
}
RealityView Ambiguous use of... in Beta 8 of Xcode
 
 
Q