Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Table Header Background not appearing in iPadOS 26
Hi @DTS Engineer I included the exact sample code to reproduce this problem in my original post. It is a self-contained example snipped that can be previewed in Xcode. For reference, let me include it again: import SwiftUI struct TablePreviewContent: Identifiable { var id: Int { text.hashValue } var text: String } #Preview { let content = [TablePreviewContent(text: "Hello"), TablePreviewContent(text: "World")] Table(content) { TableColumn("Title", value: \.text) } } Previewing this on iPadOS 26 as well as iPadOS 18.5 within Xcode 26 (Release Candidate, Version 26.0 (17A321)) results in the output I shared in the screenshot above. Please note that this request is regarding SwiftUI.Table and not SwiftUI.List.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to Xcode 16 no longer sets ENABLE_PREVIEWS=YES for preview builds
Had a discussion with the build systems team at WWDC25 about this. The reason they gave that we can not differentiate the preview build from regular builds, is that they are practically the same. They use the same build process, caches, etc. so there is no meaningful way to distinguish them. The recommended solution here is to avoid changing files during the build if at all possible. For example, a formatter should be run with auto-correction disabled during build phase scripts. One way to achieve auto-correction would be to leverage git-hooks to run the formatter before your code is pushed.
Jul ’25