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

Fix crash when using signal(for:) on UIVisualEffectViews #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sampettersson
Copy link

signal(for: \.keyPath) under the hood adds a subview called CallbackerView this crashes when using it on a UIVisualEffectView as it has an assertion that you are not adding subviews to it directly but instead to it's contentView.

This PR checks if the view in question is a UIVisualEffectView and then proceeds to add the CallbackerView to the contentView instead.

@sampettersson sampettersson changed the title Fix crash on using signal(for:) on UIVisualEffectViews Fix crash when using signal(for:) on UIVisualEffectViews Aug 13, 2020
@moglistree moglistree requested a review from a team as a code owner February 14, 2023 15:21
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.

None yet

1 participant