5#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterSemanticsScrollView.h"
7#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h"
8#import "flutter/shell/platform/darwin/ios/framework/Source/SemanticsObject.h"
14- (instancetype)initWithSemanticsObject:(
SemanticsObject*)semanticsObject {
15 self = [
super initWithFrame:CGRectZero];
22- (UIView*)hitTest:(CGPoint)point withEvent:(
UIEvent*)event {
31 if (![
self.semanticsObject isAccessibilityBridgeAlive]) {
35 if (
self.semanticsObject.isAccessibilityElement) {
38 if (
self.contentSize.width >
self.frame.size.width ||
39 self.contentSize.height >
self.frame.size.height) {
42 return ![
self.semanticsObject bridge]->isVoiceOverRunning();
49 return self.semanticsObject.accessibilityLabel;
53 return self.semanticsObject.accessibilityAttributedLabel;
57 return self.semanticsObject.accessibilityValue;
61 return self.semanticsObject.accessibilityAttributedValue;
65 return self.semanticsObject.accessibilityHint;
69 return self.semanticsObject.accessibilityAttributedHint;
73 return [
self.semanticsObject accessibilityActivate];
77 [
self.semanticsObject accessibilityIncrement];
81 [
self.semanticsObject accessibilityDecrement];
84- (
BOOL)accessibilityScroll:(UIAccessibilityScrollDirection)direction {
85 return [
self.semanticsObject accessibilityScroll:direction];
89 return [
self.semanticsObject accessibilityPerformEscape];
93 [
self.semanticsObject accessibilityElementDidBecomeFocused];
97 [
self.semanticsObject accessibilityElementDidLoseFocus];
101 return self.semanticsObject.accessibilityContainer;
105 return self.semanticsObject.children.count;