Upgrading from Xcode 13.4 to 14 Causes Build Failure

Code that previously ran fine will not longer compile. I get the error:

Property 'anchorPoint' with type "UserResizableViewAnchorPoint?' cannot override a property with type 'CGPoint'

Property cannot be declared public because its type uses and internal type

How do I troubleshoot this?

Change the name of your property, 'anchorPoint', to a name which is not an internal type.

See https://developer.apple.com/documentation/quartzcore/calayer/1410817-anchorpoint

anchorPoint Defines the anchor point of the layer's bounds rectangle. Animatable. Declaration var anchorPoint: CGPoint { get set }

When declaring it, try adding "ing" after "anchor" so you aren't using an internal type:

public var anchoringPoint: "UserResizableViewAnchorPoint?'

Not sure why Xcode 13.4 allowed the your type of use of anchorPoint in the first place, but 14 does not allow what you did.

Upgrading from Xcode 13.4 to 14 Causes Build Failure
 
 
Q