Преглед изворни кода

frosted glass view: insert effect view at the correct position in the view hierarchy

Felix Paul Kühne пре 9 година
родитељ
комит
c318629f26
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Sources/VLCFrostedGlasView.m

+ 1 - 1
Sources/VLCFrostedGlasView.m

@@ -59,7 +59,7 @@
     _effectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]];
     _effectView.frame = self.bounds;
     _effectView.clipsToBounds = YES;
-    [self addSubview:_effectView];
+    [self insertSubview:_effectView atIndex:0];
 #endif
 }