ScrollableView vs UICollectionView vs UITableView - YamamotoDesu/Yamamoto-Notes GitHub Wiki

ScrollableView vs UICollectionView vs UITableView

  • ScrollableView(Common)

    • Pros
      • Makes anything scrollable
      • Minimalist
      • Full controll
      • Good for long pages
    • Cons
      • Can't easily reload
      • No built in affordances
        (i.e. pull to reload)
      • Full controll
      • Auto Layout more complext
  • UICollectionView(Rare)

    • Pros
      • Customizable layouts
      • Multi-column scrollable
      • Can dynamically change layout
      • Good for photos in a grid
    • Cons
      • More complex
      • Often overkill
  • UITableView(All the time)

    • Pros
      • Heighly performant (reuseIdentifiers)
      • Many affordances built in (header, footer, sections)
      • Perfext for single column lists
    • Cons
      • Hard to do complext non-single column layouts

How to resolve StackView Complains

Logs:

Change Priority 1000 as 999: