Example
// My data to use
let items: [Any] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ...]
/*
// UICollectionView result I want
<Section [Item1, Item2, Item3]>
<Other Section A>
<Section [Item4, Item5, Item6]>
<Other Section B>
<Section [Item7, Item8, Item9]>
<Other Section A>
<Section [Item10, Item11, Item12]>
<Other Section B>
*/
If my data is a Two-Dimensional Array like below, I can see the result easier.
let items: [[Any]] = [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12] ...]
But I think I should use only One-Dimensional Array.
Because my items will add/remove frequently. and need API Communication.. and need LoadMore function.. Maybe these things become complicated if use 2d array. and this problem relate other sections' position.
Is it possible only One-Dimensional Array? and my think is correct?