Skip to content

🐞 Replace deprecated modifier .cornerRadius() #1747

@Jerry23011

Description

@Jerry23011

Description

.cornerRadius(_:antialiased:) is now marked as deprecated by Xcode, using .clipShape(RoundedRectangle(cornerRadius: CGFloat)) to replace it produces identical results.

To Reproduce

  1. Go to project
  2. In code where .cornerRadius(_:antialiased:) is used, ⌥ click to see the deprecation warning

Expected Behavior

Using .clipShape(RoundedRectangle(cornerRadius: CGFloat)) will eliminate the warning

Version Information

CodeEdit: branch - main
macOS: 14.5
Xcode: 15.4

Additional Context

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🏁 Complete

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions