Commit 7bfd54b8 authored by Carola Nitz's avatar Carola Nitz

VLCMiniplaybackView: fix crash on < iOS11 with autolayout

The layoutGuides can be nil and crashh for <iOS 11 so we need to use self
parent 7f8d99d5
......@@ -116,7 +116,7 @@
_stackView.distribution = UIStackViewDistributionFillEqually;
[self addSubview:_stackView];
UILayoutGuide *guide = self.layoutGuides.firstObject;
UILayoutGuide *guide = self;
if (@available(iOS 11.0, *)) {
guide = self.safeAreaLayoutGuide;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment