你好,我现在正在做一个项目,我必须在我的标签中支持rtl文本我有这个用swift3编写的代码片段,但它不再适用于swift4和5。我尝试更新它,但我不知道如何更新它extensionUILabel{funcdecideTextDirection(){lettagScheme=[NSLinguisticTagSchemeLanguage]lettagger=NSLinguisticTagger(tagSchemes:tagScheme,options:0)tagger.string=self.textletlang=tagger.tag(at:0,scheme:NSLinguisticT