|
@@ -48,18 +48,19 @@ let recentDatasTest: [RecentData] = [
|
|
|
.init(id: "2", image: UIImage(named: "nextcloud")!, title: "title2", subTitle: "subTitle-description2", url: URL(string: "https://nextcloud.com/")!),
|
|
|
.init(id: "3", image: UIImage(named: "nextcloud")!, title: "title3", subTitle: "subTitle-description3", url: URL(string: "https://nextcloud.com/")!),
|
|
|
.init(id: "4", image: UIImage(named: "nextcloud")!, title: "title4", subTitle: "subTitle-description4", url: URL(string: "https://nextcloud.com/")!),
|
|
|
- .init(id: "5", image: UIImage(named: "nextcloud")!, title: "title5", subTitle: "subTitle-description5", url: URL(string: "https://nextcloud.com/")!)
|
|
|
+ .init(id: "5", image: UIImage(named: "nextcloud")!, title: "title5", subTitle: "subTitle-description5", url: URL(string: "https://nextcloud.com/")!),
|
|
|
+ .init(id: "6", image: UIImage(named: "nextcloud")!, title: "title6", subTitle: "subTitle-description6", url: URL(string: "https://nextcloud.com/")!)
|
|
|
]
|
|
|
|
|
|
func getNumberItems(height: CGFloat) -> Int {
|
|
|
|
|
|
- let num: Int = Int((height - 150) / 40)
|
|
|
+ let num: Int = Int((height - 100) / 40)
|
|
|
return num
|
|
|
}
|
|
|
|
|
|
func getDataEntry(isPreview: Bool, displaySize: CGSize, completion: @escaping (_ entry: NextcloudDataEntry) -> Void) {
|
|
|
|
|
|
- let num: Int = Int((displaySize.height - 150) / 40) - 1
|
|
|
+ let num = getNumberItems(height: displaySize.height) - 1
|
|
|
let recentDatasPlaceholder = Array(recentDatasTest[0...num])
|
|
|
|
|
|
if isPreview {
|