I moved to FireFox. Seems FireFox works well with this site and I can write a reply.
I struggled with your code for hours, and I think the following code would be able to make your collection views work:
(I renamed all the struct names to follow the coding convection of Swift, if you have some specific reason you cannot follow it, please re-interpret them appropriately.)
globals
var imagenArraaay: [String] = []
var arrayPoster_path: [String] = []
var arrayOverview: [String] = []
var arrayCreatorName: [String] = []
var season_number: String = ""
var season_number2: Int = 0
var air_date: String = ""
var still_path: String = ""
var arrayName: [String] = []
var arrayFirst_air_date: [String] = []
var arrayBackdrop_path: [String] = []
var arrayVote_average: [NSNumber] = []
var arrayid: [NSNumber] = []
var arrayShows: [Tvshows] = []
var arrayCast: [Castt] = []
var arrayCreator: [Created] = []
var arrayAiringSeason: [Episode] = []
//#↓ Remove these many Arrays
//var arraySeasonsEpisodes: [Episodess] = []
//var arraySeasonsEpisodes2: [Episodess] = []
//var arraySeasonsEpisodes3: [Episodess] = []
//var arraySeasonsEpisodes4: [Episodess] = []
//var arraySeasonsEpisodes5: [Episodess] = []
//var arraySeasonsEpisodes6: [Episodess] = []
//var arraySeasonsEpisodes7: [Episodess] = []
//var arraySeasonsEpisodes8: [Episodess] = []
//var arraySeasonsEpisodes9: [Episodess] = []
//var arraySeasonsEpisodes10: [Episodess] = []
//#↓ And use one Array of Array instead
var arrayOfArraySeasonsEpisodes: [[Episodess]] = .init(repeating: [], count: 10)
var arregloDeArreglos: [[ArregloBidimencional]] = []
var arregloDeArreglosTri: [ArregloTridimencional] = []
var arrayOfSeasonsInt: [Int] = []
SelectedShowVC
override func viewWillAppear(_ animated: Bool) {
arrayCast.removeAll()
arrayCreator.removeAll()
arrayAiringSeason.removeAll()
arrayOfSeasonsInt.removeAll()
arrayCreatorName.removeAll()
// arraySeasonsEpisodes.removeAll() //duplicate
arregloDeArreglos.removeAll()
//#↓ Remove these
// arraySeasonsEpisodes.removeAll()
// arraySeasonsEpisodes2.removeAll()
// arraySeasonsEpisodes3.removeAll()
// arraySeasonsEpisodes4.removeAll()
// arraySeasonsEpisodes5.removeAll()
// arraySeasonsEpisodes6.removeAll()
// arraySeasonsEpisodes7.removeAll()
// arraySeasonsEpisodes8.removeAll()
// arraySeasonsEpisodes9.removeAll()
// arraySeasonsEpisodes10.removeAll()
arrayOfArraySeasonsEpisodes = .init(repeating: [], count: 10) //#- Use Array (of Array)
//...
UI.tvTitleLabel.text = UI.SelectedNamee
UI.descriptionTV.text = UI.SelectedOverVieww
UI.scoreLabel.text = UI.SelectedVotee
}
(As modest as possible, your code is sort of a showcase of bad practices. Especially, getCastInfo and getCreators (with included getSeasons) are critically bad and you should better re-write them as soon as possible if your code is not just an exercise. But this is another issue.)
NumberOfSeasonsCell
//#↓ Extension to use `tag` of collection view as `season`
extension NumberOfSeasonsCell {
func setCollectionViewTag(_ tag: Int) {
self.seasonsCollectionView.tag = tag
}
}