Explorar o código

do not use deprecated constructor-like make-functions

B. Petersen %!s(int64=6) %!d(string=hai) anos
pai
achega
874683e8bb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
     }