Skip to content

Conversation

@patwinch
Copy link

@patwinch patwinch commented Jul 2, 2021

Enum cases with associated types can no longer be marked as unavailable with @available in Xcode 13/Swift 5.5, this is causing a build break in MetricsCallbackWrapper.

Screen Shot 2021-07-02 at 10 26 47 AM

This PR changes MetricsCallbackWrapper to be a struct with a private Any? value that is unwrapped as MetricsCallback? when needed. The usage is the same so no other code changes are required.

Tests pass on Xcode 12.5 and 13b2.

Change how MetricsCallbackWrapper wraps its value because enum cases with associated types can not be marked as unavailable with @available in Xcode 13/Swift 5.5
Copy link

@StarLard StarLard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StarLard
Copy link

@dazmuda can you help us get this merged?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants