Deprecate UITableView and offer a UICollectionViewTableLayout instead

Originator:retsohuang
Number:rdar://43647834 Date Originated:24-Aug-2018 01:18 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:10.2
Classification:Enhancement Reproducible:Always
 
Summary:
This is a duplicate of radar #30098111

Peter Steinberger

Area:
UIKit

Summary:
UICollectionView is an almost perfect superset of UITableView. Especially in our modern world with split screen and apps that can adapt to sizes, it's often desirable to have a mode that can switch between list and grid easily. Right now this is hard (reimplement a list that might not feel perfect because getting all the details of UITableView as a collection view layout just perfect is hard) or it means maintaining two controls with different callbacks - something that just cries for bugs.

The situation is imperfect and Apple knows - this was already discussed in WWDC'14 Session 232 - Advanced User Interfaces with Collection Views where UI was built to resemble table views.

It's time for an official API so people don't need to create imperfect copies and can rather spend time to make great apps.

We've blogged about this here in much more detail:
https://pspdfkit.com/blog/2017/the-case-for-deprecating-uitableview/

Steps to Reproduce:
Try to simulate UITableView with a custom UICollectionView layout.

Expected Results:
A predefined UICollectionViewTableLayout readily available as public API.

Actual Results:
We have to manually build something like UICollectionViewTableLayout for each app, which is hard and makes apps imperfect.

Version:
Xcode 8.2.1, iOS 10.2

Notes:
See https://pspdfkit.com/blog/2017/the-case-for-deprecating-uitableview/ for a detailed post about this issue

Configuration:
Not applicable

Attachments:


Steps to Reproduce:
 

Expected Results:
 

Actual Results:
 

Version:
10.2

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!