Browse Source

Improved code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
826360f85f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Main/Create cloud/NCUploadScanDocument.swift

+ 1 - 1
iOSClient/Main/Create cloud/NCUploadScanDocument.swift

@@ -216,7 +216,7 @@ class NCUploadScanDocument: ObservableObject {
         return image
         return image
     }
     }
 
 
-    func bestFittingFont(for text: String, in bounds: CGRect, fontDescriptor: UIFontDescriptor, fontColor: UIColor) -> [NSAttributedString.Key: Any] {
+    private func bestFittingFont(for text: String, in bounds: CGRect, fontDescriptor: UIFontDescriptor, fontColor: UIColor) -> [NSAttributedString.Key: Any] {
 
 
         let constrainingDimension = min(bounds.width, bounds.height)
         let constrainingDimension = min(bounds.width, bounds.height)
         let properBounds = CGRect(origin: .zero, size: bounds.size)
         let properBounds = CGRect(origin: .zero, size: bounds.size)