alqindiirsyam 6 месяцев назад
Родитель
Сommit
bbb0f3833e
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      AppBuilder/AppBuilder/SecondTabViewController.swift

+ 9 - 0
AppBuilder/AppBuilder/SecondTabViewController.swift

@@ -1747,6 +1747,15 @@ extension SecondTabViewController: UITableViewDelegate, UITableViewDataSource {
                             imageView.startAnimating()
                         }
                     }
+                } else if let urlGif = Bundle.resourcesMediaBundle(for: Nexilis.self).url(forResource: "pb_gpt_bot", withExtension: "gif") {
+                    imageView.sd_setImage(with: urlGif) { (image, error, cacheType, imageURL) in
+                        if error == nil {
+                            imageView.animationImages = image?.images
+                            imageView.animationDuration = image?.duration ?? 0.0
+                            imageView.animationRepeatCount = 0
+                            imageView.startAnimating()
+                        }
+                    }
                 }
             } else {
                 if !Utils.getIconDock().isEmpty && data.profile.isEmpty {