jordibruin / jordibruin/visionOS-Examples
Xcode 15.2 Compile Errors: `attachmentAnchor` argument of `ornament` modifier now demands UnitPoint instead of Alignment
- Dominant language
- Swift
- Stars
- 235
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
## Error description
In Xcode15.2, compile errors occur because `attachmentAnchor` argument of [`ornament` modifier](https://developer.apple.com/documentation/SwiftUI/View/ornament(visibility:attachmentAnchor:contentAlignment:ornament:)) now demands [UnitPoint](https://developer.apple.com/documentation/swiftui/unitpoint) instead of [Alignment](https://developer.apple.com/documentation/swiftui/alignment):
```
Cannot convert value of type `Alignment` to expected argument type 'UnitPoint'
Extraneous argument label 'alignment:' in call Remove 'alignment: '
```
## Screenshots
## Solution
Change Alignment with UnitPoint, like creating a new computed property `unitPoint` in the struct 'OrnamentAlignment'
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.