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.
signal(for: \.keyPath)
under the hood adds a subview calledCallbackerView
this crashes when using it on aUIVisualEffectView
as it has an assertion that you are not adding subviews to it directly but instead to it'scontentView
.This PR checks if the view in question is a
UIVisualEffectView
and then proceeds to add theCallbackerView
to thecontentView
instead.