Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-10-19 14:39:12 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-10-19 14:39:12 +0300
commit091376e048ada278a3d903914a4c4a6952cce5af (patch)
treeaf221b9ab9a77f21fccd40d7a089dce868d457f0 /iOSClient/EmptyView
parent9be5a2f484ab7c7d0664b6a057bf028a32f05c6c (diff)
coding
Diffstat (limited to 'iOSClient/EmptyView')
-rw-r--r--iOSClient/EmptyView/NCEmptyDataSet.swift (renamed from iOSClient/EmptyView/NCEmpty.swift)18
1 files changed, 9 insertions, 9 deletions
diff --git a/iOSClient/EmptyView/NCEmpty.swift b/iOSClient/EmptyView/NCEmptyDataSet.swift
index 5dc549cf0..62ec11360 100644
--- a/iOSClient/EmptyView/NCEmpty.swift
+++ b/iOSClient/EmptyView/NCEmptyDataSet.swift
@@ -1,5 +1,5 @@
//
-// NCEmpty.swift
+// NCEmptyDataSet.swift
// Nextcloud
//
// Created by Marino Faggiana on 19/10/2020.
@@ -8,15 +8,15 @@
import Foundation
-class NCEmpty: NSObject {
+class NCEmptyDataSet: NSObject {
var emptyView: NCEmptyView?
- var collectioView: UICollectionView?
+ var collectionView: UICollectionView?
- init(collectioView: UICollectionView, image: UIImage?, title: String, description: String) {
+ init(collectionView: UICollectionView, image: UIImage?, title: String, description: String) {
super.init()
- self.collectioView = collectioView
+ self.collectionView = collectionView
if let emptyView = UINib(nibName: "NCEmptyView", bundle: nil).instantiate(withOwner: self, options: nil).first as? NCEmptyView {
self.emptyView = emptyView
@@ -29,17 +29,17 @@ class NCEmpty: NSObject {
emptyView.emptyTtle.text = NSLocalizedString(title, comment: "")
emptyView.emptyDescription.text = NSLocalizedString(description, comment: "")
- collectioView.addSubview(emptyView)
+ collectionView.addSubview(emptyView)
- emptyView.centerXAnchor.constraint(equalTo: collectioView.centerXAnchor, constant: 0).isActive = true
- emptyView.topAnchor.constraint(equalTo: collectioView.topAnchor).isActive = true
+ emptyView.centerXAnchor.constraint(equalTo: collectionView.centerXAnchor, constant: 0).isActive = true
+ emptyView.topAnchor.constraint(equalTo: collectionView.topAnchor).isActive = true
emptyView.layoutIfNeeded()
}
}
func reload() {
- let items = collectioView?.numberOfItems(inSection: 0)
+ let items = collectionView?.numberOfItems(inSection: 0)
if items == 0 {
emptyView?.isHidden = false
} else {