Browse Source

do not use deprecated constructor-like make-functions

B. Petersen 6 năm trước cách đây
mục cha
commit
874683e8bb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      deltachat-ios/Helper/Extensions.swift

+ 1 - 1
deltachat-ios/Helper/Extensions.swift

@@ -42,7 +42,7 @@ extension String {
             if index < 0 || count <= index {
                 break
             }
-            attributedText.addAttribute(.font, value: UIFont.boldSystemFont(ofSize: fontSize), range: NSMakeRange(index, 1))
+            attributedText.addAttribute(.font, value: UIFont.boldSystemFont(ofSize: fontSize), range: NSRange(location: index, length: 1))
         }
         return attributedText
     }