Skip to content

🐞 Replace deprecated modifier .cornerRadius() #1747

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions