jordibruin / visionOS-Examples

Examples of how to build things in VisionOS
222 stars 15 forks source link

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

Open Satoru-PriChan opened 10 months ago

Satoru-PriChan commented 10 months ago

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'

Satoru-PriChan commented 10 months ago

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.

derwaldgeist commented 8 months ago

Same here. Project does not compile anymore.

Satoru-PriChan commented 6 months ago

Hi @jordibruin ,

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