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:
-
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
-
- 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
- This session explains how to build custom container views in SwiftUI, which can be used to create complex layouts similar to
-
- 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.

Demystify SwiftUI containers
Learn about the capabilities of SwiftUI container views and build a mental model for how subviews are managed by their containers. Leverage new APIs to build your own custom containers, create modifiers to customize container content, and give your containers that extra polish that helps your apps stand out.

Migrate your TVML app to SwiftUI
SwiftUI helps you build great apps on all Apple platforms and is the preferred toolkit for bringing your content into the living room with tvOS 18. Learn how to use SwiftUI to create familiar layouts and controls from TVMLKit, and get tips and best practices.

SwiftUI essentials
Join us on a tour of SwiftUI, Apple’s declarative user interface framework. Learn essential concepts for building apps in SwiftUI, like views, state variables, and layout. Discover the breadth of APIs for building fully featured experiences and crafting unique custom components. Whether you’re brand new to SwiftUI or an experienced developer, you’ll learn how to take advantage of what SwiftUI has to offer when building great apps.
