|
@@ -20,8 +20,10 @@ public class PQGIFImageView: UIImageView {
|
|
public func generateImages() {
|
|
public func generateImages() {
|
|
if imagesDara != nil, (imagesDara?.count ?? 0) > 0 {
|
|
if imagesDara != nil, (imagesDara?.count ?? 0) > 0 {
|
|
for item in imagesDara! {
|
|
for item in imagesDara! {
|
|
- let image = UIImage(named: item)!
|
|
|
|
- images.append(image)
|
|
|
|
|
|
+ let image = UIImage(named: item)
|
|
|
|
+ if image != nil {
|
|
|
|
+ images.append(image!)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|