Browse Source

new rename view

marinofaggiana 4 years ago
parent
commit
9a50357a01
1 changed files with 4 additions and 0 deletions
  1. 4 0
      iOSClient/Main/Rename file/NCRenameFile.swift

+ 4 - 0
iOSClient/Main/Rename file/NCRenameFile.swift

@@ -63,6 +63,8 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
                 fileNameWithoutExtTrailingContraint.constant = 90
                 fileNameWithoutExtTrailingContraint.constant = 90
             }
             }
         }
         }
+        previewFile.layer.cornerRadius = 10
+        previewFile.layer.masksToBounds = true
                 
                 
         cancelButton.setTitle(NSLocalizedString("_cancel_", comment: ""), for: .normal)
         cancelButton.setTitle(NSLocalizedString("_cancel_", comment: ""), for: .normal)
         cancelButton.setTitleColor(.gray, for: .normal)
         cancelButton.setTitleColor(.gray, for: .normal)
@@ -95,6 +97,7 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
     }
     }
     
     
     func textFieldShouldReturn(_ textField: UITextField) -> Bool {
     func textFieldShouldReturn(_ textField: UITextField) -> Bool {
+        
         textField.resignFirstResponder()
         textField.resignFirstResponder()
         return true
         return true
     }
     }
@@ -102,6 +105,7 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
     // MARK: - Action
     // MARK: - Action
     
     
     @IBAction func cancel(_ sender: Any) {
     @IBAction func cancel(_ sender: Any) {
+        
         dismiss(animated: true)
         dismiss(animated: true)
     }
     }