Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to Perception on iOS 17 beta builds #72

Conversation

ollieatkinson
Copy link
Contributor

Early beta versions used the @_marker protocol for Observable.
Changes to the protocol's memory layout in these versions disrupt dynamic casting,
e.g. subject as? any Observable. This occurs because the Swift runtime expects a specific
protocol metadata layout for casting, and this mismatch leads to a crash.

As a result, the following check has been implemented to disable Observation on any of the
following beta OS versions:

  • iOS 17.0.0
  • watchOS 10.0.0
  • tvOS 17.0.0

This safeguard makes sure that Perception is used in place of Observation.

P/R of #66

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