jordibruin / visionOS-Examples

Examples of how to build things in VisionOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xcode 15.2 Compile Errors: `attachmentAnchor` argument of `ornament` modifier now demands UnitPoint instead of Alignment

Satoru-PriChan opened this issue · comments

Error description

In Xcode15.2, compile errors occur because attachmentAnchor argument of ornament modifier now demands UnitPoint instead of Alignment:

Cannot convert value of type `Alignment` to expected argument type 'UnitPoint'

Extraneous argument label 'alignment:' in call Remove 'alignment: '

Screenshots

截屏2024-01-14 20 10 30 截屏2024-01-14 20 10 42

Solution

Change Alignment with UnitPoint, like creating a new computed property unitPoint in the struct 'OrnamentAlignment'

Hi @jordibruin,

Thank you very much for creating an excellent VisionOS example app.
I created a draft marge request as well as this issue to resolve it. If you do not mind, I will be going to remove Draft: from #3 to ask you to review it. Thank you very much.

Same here. Project does not compile anymore.

Hi @jordibruin ,

I removed Draft from #3 to merge it. Any Updates? Thank you very much.