浏览代码

Fix animation

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 年之前
父节点
当前提交
17efb7bd78
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 6 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -1760,7 +1760,12 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
                 header.setRichWorkspaceText(richWorkspaceText)
 
                 header.setSectionHeight(heightHeaderSection)
-                header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath)
+                if heightHeaderSection == 0 {
+                    header.labelSection.text = ""
+
+                } else {
+                    header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath)
+                }
                 header.labelSection.textColor = NCBrandColor.shared.label
 
                 return header