How to make a UITableView

Asked on 2024-07-30

1 search

To create a UITableView, you would typically use UIKit, but if you're interested in using SwiftUI, you can achieve similar functionality with List or custom views. Here are some relevant sessions from WWDC that might help you:

  1. Migrate your TVML app to SwiftUI:

    • This session covers how to build various UI components in SwiftUI, which can be useful if you're transitioning from UIKit to SwiftUI.
    • Chapters:
      • Introduction
      • Lockups
      • Shelves
      • Catalogs
      • Search
  2. Demystify SwiftUI containers:

    • This session explains how to build custom container views in SwiftUI, which can be used to create complex layouts similar to UITableView.
    • Chapters:
      • Introduction
      • Composition
      • Sections
      • Customization
      • Next steps
  3. SwiftUI essentials:

    • This session provides an overview of SwiftUI's capabilities, including how to create custom views and layouts.
    • Chapters:
      • Introduction
      • Fundamentals of views
      • Built-in capability
      • Across all platforms
      • SDK interoperability

If you need a specific example or more detailed guidance on creating a UITableView-like component in SwiftUI, you might want to look into the "Demystify SwiftUI containers" session, particularly the sections on Composition and Sections.