Browse Source

new view share

marinofaggiana 5 years ago
parent
commit
bdfbed3dca

+ 5 - 1
iOSClient/Share/NCShare.swift

@@ -270,13 +270,17 @@ class NCShareUserCell: UITableViewCell {
         buttonMenu.setImage(CCGraphics.changeThemingColorImage(UIImage.init(named: "shareMenu"), width:100, height: 100, color: UIColor.gray), for: .normal)
     }
     
-    // Can edit
     @IBAction func switchCanEditChanged(sender: UISwitch) {
         delegate?.switchCanEdit(with: tableShare, switch: sender.isOn, sender: sender)
     }
+    
+    @IBAction func touchUpInsideMenu(_ sender: Any) {
+        delegate?.tapMenu(with: tableShare, sender: sender)
+    }
 }
 
 protocol NCShareUserCellDelegate {
     func switchCanEdit(with tableShare: tableShare?, switch: Bool, sender: Any)
+    func tapMenu(with tableShare: tableShare?, sender: Any)
 }
 

+ 3 - 0
iOSClient/Share/NCShareUserCell.xib

@@ -70,6 +70,9 @@
                             <constraint firstAttribute="width" constant="20" id="vLI-cJ-Jqx"/>
                         </constraints>
                         <state key="normal" image="shareMenu"/>
+                        <connections>
+                            <action selector="touchUpInsideMenu:" destination="qJF-Yc-gKE" eventType="touchUpInside" id="NJn-zI-QQX"/>
+                        </connections>
                     </button>
                 </subviews>
                 <constraints>

+ 1 - 1
iOSClient/Share/NCShareUserMenuView.swift

@@ -43,7 +43,7 @@ class NCShareUserMenuView: UIView, UIGestureRecognizerDelegate, NCShareNetworkin
     private let appDelegate = UIApplication.shared.delegate as! AppDelegate
     
     public let width: CGFloat = 250
-    public let height: CGFloat = 340
+    public let height: CGFloat = 260
     private var tableShare: tableShare?
     public var metadata: tableMetadata?