Kaynağa Gözat

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

Felix Paul Kühne 9 yıl önce
ebeveyn
işleme
c318629f26
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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
 }