Skip to content

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

@Satoru-PriChan

Description

@Satoru-PriChan

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions