Flutter iOS Embedder
ChildClippingView Class Reference

#import <FlutterPlatformViews_Internal.h>

Inheritance diagram for ChildClippingView:

Instance Methods

(void) - applyBlurBackdropFilters:
 
(NSMutableArray *) - backdropFilterSubviews
 

Detailed Description

Definition at line 178 of file FlutterPlatformViews.mm.

Method Documentation

◆ applyBlurBackdropFilters:

- (void) applyBlurBackdropFilters: (NSArray<PlatformViewFilter*>*)  filters

Definition at line 174 of file FlutterPlatformViews.mm.

192  :(NSArray<PlatformViewFilter*>*)filters {
193  FML_DCHECK(self.filters.count == self.backdropFilterSubviews.count);
194  if (self.filters.count == 0 && filters.count == 0) {
195  return;
196  }
197  self.filters = filters;
198  NSUInteger index = 0;
199  for (index = 0; index < self.filters.count; index++) {
200  UIVisualEffectView* backdropFilterView;
201  PlatformViewFilter* filter = self.filters[index];
202  if (self.backdropFilterSubviews.count <= index) {
203  backdropFilterView = filter.backdropFilterView;
204  [self addSubview:backdropFilterView];
205  [self.backdropFilterSubviews addObject:backdropFilterView];
206  } else {
207  [filter updateVisualEffectView:self.backdropFilterSubviews[index]];
208  }
209  }
210  for (NSUInteger i = self.backdropFilterSubviews.count; i > index; i--) {
211  [self.backdropFilterSubviews[i - 1] removeFromSuperview];
212  [self.backdropFilterSubviews removeLastObject];
213  }
214 }
NSMutableArray * backdropFilterSubviews()

◆ backdropFilterSubviews

- (NSMutableArray *) backdropFilterSubviews

Definition at line 174 of file FlutterPlatformViews.mm.

216  {
217  if (!_backdropFilterSubviews) {
218  _backdropFilterSubviews = [[NSMutableArray alloc] init];
219  }
220  return _backdropFilterSubviews;
221 }

The documentation for this class was generated from the following files: