File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Demo/YYTextDemo.xcodeproj/project.xcworkspace/xcshareddata Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+ <plist version =" 1.0" >
4+ <dict >
5+ <key >IDEDidComputeMac32BitWarning </key >
6+ <true />
7+ </dict >
8+ </plist >
Original file line number Diff line number Diff line change @@ -521,6 +521,11 @@ + (YYTextLayout *)layoutWithContainer:(YYTextContainer *)container text:(NSAttri
521521 // CoreText coordinate system
522522 CGPoint ctLineOrigin = lineOrigins[i];
523523
524+ // https://github.com/ibireme/YYText/issues/930
525+ if ([UIApplication sharedApplication ].userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionRightToLeft) {
526+ ctLineOrigin.x = 0 ;
527+ }
528+
524529 // UIKit coordinate system
525530 CGPoint position;
526531 position.x = cgPathBox.origin .x + ctLineOrigin.x ;
You can’t perform that action at this time.
0 commit comments