when converting HTML to Attributedstring, Bullet points and text are not aligned in RTL iOS swift

Viewed 34

I am using localization(English and arabic).I need to convert HTML to attributed string, when it converting in arabic, content and Bullet points are not aligned RTL direction. now I am using code is :

if LocalizationSystem.sharedInstance.getLanguage() == "ar" {
      contentView.semanticContentAttribute = .forceRightToLeft
  }else{
      contentView.semanticContentAttribute = .forceLeftToRight
  }

If there any way to align in RTL Direction?enter image description here

0 Answers
Related