Use case
There are lots of repetitive logic around getting the touch interceptor view. For example:
|
UIView* touchInteceptorView = gMockPlatformView; |
|
while (touchInteceptorView != nil && |
|
![touchInteceptorView isKindOfClass:[FlutterTouchInterceptingView class]]) { |
|
touchInteceptorView = touchInteceptorView.superview; |
|
} |
|
XCTAssertNotNil(touchInteceptorView); |
and
|
UIView* touchInteceptorView = gMockPlatformView; |
|
while (touchInteceptorView != nil && |
|
![touchInteceptorView isKindOfClass:[FlutterTouchInterceptingView class]]) { |
|
touchInteceptorView = touchInteceptorView.superview; |
|
} |
Proposal
We should create a helper function to clean this up. This kind of mechanical clean up can be a good candidate for AI.
Use case
There are lots of repetitive logic around getting the touch interceptor view. For example:
flutter/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsTest.mm
Lines 2982 to 2987 in 413244e
and
flutter/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsTest.mm
Lines 3108 to 3112 in 413244e
Proposal
We should create a helper function to clean this up. This kind of mechanical clean up can be a good candidate for AI.