Thanks to visit codestin.com
Credit goes to github.com

Skip to content

can not click the first item if some array does not have image on version 1.1.0 #9

@stoneyanjun

Description

@stoneyanjun

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)
}

self.images[0].removeAll()

}
gliding-collection-master 2.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions