Closed hpeikemo closed 7 years ago
iOS 11 SDK introduces an assertion failure when a subview is added directly onto a UIVisualEffectView and not its contentView The following patch resolves the issue
UIVisualEffectView
contentView
diff --git a/PKHUD/FrameView.swift b/PKHUD/FrameView.swift index 5ef1769..787f72e 100644 --- a/PKHUD/FrameView.swift +++ b/PKHUD/FrameView.swift @@ -57,7 +57,7 @@ internal class FrameView: UIVisualEffectView { _content.clipsToBounds = true _content.contentMode = .center frame.size = _content.bounds.size - addSubview(_content) + contentView.addSubview(_content) } } }
You should use the swift4 branch
iOS 11 SDK introduces an assertion failure when a subview is added directly onto a
UIVisualEffectView
and not itscontentView
The following patch resolves the issue