在 iOS 15 當我們使用 table view controller 搭配 Static Cells 的 table view 時,將遇到特別的 header / footer 顯示問題。
以下我們用 Static Cells 製作精美的 Apple Store 列表。
當我們將 Table View 的 Content 欄位設為 Static Cells 時,我們可以方便地在 storyboard 設計表格內容,不用寫程式就能產生表格的每個 cell。
以下分別介紹 SwiftUI & UIKit 的做法。