You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attaching the modification demo project:
With the lastest version 1.10, use the Demo project, add one line at the end of func loadImages() to remove images for first item:
private func loadImages() {
for item in items {
let imageURLs = FileManager.default.fileUrls(for: "jpeg", fileName: item)
var images: [UIImage?] = []
for url in imageURLs {
guard let data = try? Data(contentsOf: url) else { continue }
let image = UIImage(data: data)
images.append(image)
}
self.images.append(images)
}
@stoneyanjun can you please explain why you ever display a completely empty section?
I think it doesn't make sense to display section with no items, so I can't call this case an edge case. Maybe you'll try to provide some empty state cell?
The reason I have empty rows is because I am using this to mirror a view of hireological folder/record filesystem. So some of the folders can have 0 records in them but I still want to show the row with no items. Then I allow the user to select the record and it brings up the detailed info for it.
Yes I can put in an empty placeholder cell but would rather it just show it with nothing if at all possible.
Attaching the modification demo project:
With the lastest version 1.10, use the Demo project, add one line at the end of func loadImages() to remove images for first item:
private func loadImages() {
for item in items {
let imageURLs = FileManager.default.fileUrls(for: "jpeg", fileName: item)
var images: [UIImage?] = []
for url in imageURLs {
guard let data = try? Data(contentsOf: url) else { continue }
let image = UIImage(data: data)
images.append(image)
}
self.images.append(images)
}
}
gliding-collection-master 2.zip
The text was updated successfully, but these errors were encountered: