AnchorEntity init(anchor:) doesn't exist anymore in XCode 15?

Just updated my XCode as 15 is released today (been using 15 beta for the last couple of months) and this part of code doesn't compile anymore :

let anchor = AnchorEntity(anchor: objectAnchor)

error says "no exact match in call to initializer" ? seems like it doesn't accept any parameter or only expecting AnchoringComponent.Target

The code was okay and runs well before the update and I've been using 15 beta to make and test my current code. I checked the documentation and it seems initializing AnchorEntity using existing ARAnchor hasn't been deprecated

https://developer.apple.com/documentation/realitykit/anchorentity/init(anchor:)

What happens here?

It seems it's gone now and since it seems that the only information it needs is the position, I just substituted my code into this :

let anchor = AnchorEntity(anchor: objectAnchor.transform.position)

Seems to be working for now but I'm not sure if that's the actual substitute for init(anchor:)

Let's see what other suprises this new update brings :)

AnchorEntity init(anchor:) doesn't exist anymore in XCode 15?
 
 
Q