yes all of then are global
Well, frankly saying, you may need a lot more emojis which looks more severe.
I often say to developers who say themselves as beginners,
if you need effort to keep two or more arrays consistent, it is an indication of bad design and you should re-organize your code.
You should better avoid using globals just for data passing.
And you are still using non-Capitalized name for structs, that is making your code harder to read.
Anyway, you have multiple UICollectionViews in each UITableView, so each UICollectionView needs to have own its dataSource.
Only one global modelOfSeason would never work appropriately for multiple UICollectionViews.
I will try to find how to fix your code with minimum modification, but it may take long.
By the way, this thread is being too heavy for the Safari of my old MacBook Air.
Maybe too many Code block (`) is not good for Safari, please try Text attachment` next time.
Topic:
Programming Languages
SubTopic:
Swift
Tags: