|
@@ -3491,7 +3491,12 @@ YYTextDebugTarget, YYTextKeyboardObserver> {
|
|
}
|
|
}
|
|
|
|
|
|
#if TARGET_OS_VISION
|
|
#if TARGET_OS_VISION
|
|
-
|
|
|
|
|
|
+- (void)setBaseWritingDirection:(NSInteger)writingDirection forRange:(YYTextRange *)range {
|
|
|
|
+ if (!range) return;
|
|
|
|
+ range = [self _correctedTextRange:range];
|
|
|
|
+ [_innerText yy_setBaseWritingDirection:(NSWritingDirection)writingDirection range:range.asRange];
|
|
|
|
+ [self _commitUpdate];
|
|
|
|
+}
|
|
#else
|
|
#else
|
|
- (void)setBaseWritingDirection:(UITextWritingDirection)writingDirection forRange:(YYTextRange *)range {
|
|
- (void)setBaseWritingDirection:(UITextWritingDirection)writingDirection forRange:(YYTextRange *)range {
|
|
if (!range) return;
|
|
if (!range) return;
|