schibsted / account-sdk-ios

⛔️ DEPRECATED SchibstedAccount SDK for iOS
MIT License
6 stars 16 forks source link

Enum cases with associated values cannot be marked potentially unavailable with '@available' #334

Open kristofferanger opened 2 years ago

kristofferanger commented 2 years ago

In Xcode 13 I get this error message in the enum AdditionalField

Enum cases with associated values cannot be marked potentially unavailable with '@available'
Screenshot 2021-09-23 at 18 21 20

Seems like the availability attribute in a single case is no longer supported. The enum is used in this method on PasswordCoordinator:

func interaction(_ interaction: TrackingEvent.Interaction, with screen: TrackingEvent.Screen, additionalFields: [TrackingEvent.AdditionalField])

The effect is that the project won't compile. Is it any fix for this?

kristofferanger commented 2 years ago

Is this hotfix okay (or will it break something that I don't see)?

Screenshot 2021-09-28 at 15 00 30 Screenshot 2021-09-28 at 15 00 47