#import <FlutterPlatformViews_Internal.h>
◆ applyBlurBackdropFilters:
Definition at line 203 of file FlutterPlatformViews_Internal.mm.
203 :(NSArray<PlatformViewFilter*>*)filters {
204 FML_DCHECK(
self.filters.count ==
self.backdropFilterSubviews.count);
205 if (
self.filters.count == 0 && filters.count == 0) {
208 self.filters = filters;
209 NSUInteger index = 0;
210 for (index = 0; index <
self.filters.count; index++) {
211 UIVisualEffectView* backdropFilterView;
213 if (
self.backdropFilterSubviews.count <= index) {
214 backdropFilterView = filter.backdropFilterView;
215 [self addSubview:backdropFilterView];
216 [self.backdropFilterSubviews addObject:backdropFilterView];
218 [filter updateVisualEffectView:self.backdropFilterSubviews[index]];
221 for (NSUInteger i =
self.backdropFilterSubviews.count; i > index; i--) {
222 [self.backdropFilterSubviews[i - 1] removeFromSuperview];
223 [self.backdropFilterSubviews removeLastObject];
References PlatformViewFilter::backdropFilterView.
The documentation for this class was generated from the following files: