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.