Skip to content

Commit

Permalink
Align Compose components semantics with UIKit views accessibility (#1719
Browse files Browse the repository at this point in the history
  • Loading branch information
ASalavei authored Dec 13, 2024
1 parent 304e71b commit 201bbea
Show file tree
Hide file tree
Showing 5 changed files with 754 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ NS_ASSUME_NONNULL_BEGIN

- (NSString *__nullable)accessibilityValue CMP_ABSTRACT_FUNCTION;

- (__nullable id<UITextInput>)accessibilityTextInputResponder CMP_ABSTRACT_FUNCTION;

- (CGRect)accessibilityFrame CMP_ABSTRACT_FUNCTION;

- (BOOL)isAccessibilityElement CMP_ABSTRACT_FUNCTION;

- (BOOL)accessibilityActivate CMP_ABSTRACT_FUNCTION;

- (void)accessibilityIncrement CMP_ABSTRACT_FUNCTION;

- (void)accessibilityDecrement CMP_ABSTRACT_FUNCTION;

// Private SDK method. Calls when the item is swipe-to-focused in VoiceOver.
- (BOOL)accessibilityScrollToVisible;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ - (NSString *__nullable)accessibilityLabel {
CMP_ABSTRACT_FUNCTION_CALLED
}

- (__nullable id<UITextInput>)accessibilityTextInputResponder {
CMP_ABSTRACT_FUNCTION_CALLED
}

- (NSString *__nullable)accessibilityValue {
CMP_ABSTRACT_FUNCTION_CALLED
}
Expand All @@ -96,6 +100,14 @@ - (BOOL)accessibilityActivate {
CMP_ABSTRACT_FUNCTION_CALLED
}

- (void)accessibilityIncrement {
CMP_ABSTRACT_FUNCTION_CALLED
}

- (void)accessibilityDecrement {
CMP_ABSTRACT_FUNCTION_CALLED
}

- (BOOL)accessibilityScroll:(UIAccessibilityScrollDirection)direction {
CMP_ABSTRACT_FUNCTION_CALLED
}
Expand Down
Loading

0 comments on commit 201bbea

Please sign in to comment.