just try to change the inDirection: to UITextWritingDirection.rightToLeft.rawValue, this worked for me (even that it is logical wrong to me)
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: