Browse Source

new view share

marinofaggiana 5 years ago
parent
commit
f65ba4c611
1 changed files with 3 additions and 3 deletions
  1. 3 3
      iOSClient/Share/NCShare.swift

+ 3 - 3
iOSClient/Share/NCShare.swift

@@ -177,7 +177,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
         
         appearance.backgroundColor = .white
         appearance.cornerRadius = 10
-        appearance.shadowColor = UIColor(white: 0.6, alpha: 1)
+        appearance.shadowColor = UIColor(white: 0.5, alpha: 1)
         appearance.shadowOpacity = 0.9
         appearance.shadowRadius = 25
         appearance.animationduration = 0.25
@@ -189,7 +189,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
         
         dropDown.dataSource = items.map {$0.name}
         dropDown.anchorView = searchField
-        dropDown.bottomOffset = CGPoint(x: 0, y: searchField.bounds.height + 2)
+        dropDown.bottomOffset = CGPoint(x: 0, y: searchField.bounds.height)
         
         dropDown.cellNib = UINib(nibName: "NCShareUserDropDownCell", bundle: nil)
         dropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in
@@ -198,7 +198,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
         }
         
         dropDown.selectionAction = { [weak self] (index, item) in
-            
+            let item = items[index]
         }
         
         dropDown.show()