浏览代码

new rename view

marinofaggiana 4 年之前
父节点
当前提交
9a50357a01
共有 1 个文件被更改,包括 4 次插入0 次删除
  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
             }
         }
+        previewFile.layer.cornerRadius = 10
+        previewFile.layer.masksToBounds = true
                 
         cancelButton.setTitle(NSLocalizedString("_cancel_", comment: ""), for: .normal)
         cancelButton.setTitleColor(.gray, for: .normal)
@@ -95,6 +97,7 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
     }
     
     func textFieldShouldReturn(_ textField: UITextField) -> Bool {
+        
         textField.resignFirstResponder()
         return true
     }
@@ -102,6 +105,7 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
     // MARK: - Action
     
     @IBAction func cancel(_ sender: Any) {
+        
         dismiss(animated: true)
     }