SwiftUI: How to make Sticky header with Grid/Stack Views?

Xcode 12 — ios14

Prafulla Singh

--

Apple have in-build support for Sticky Headers/Footer for Stack/grid view types.

  • Init Grid/Stack with pinned view Parameter. Pinned View accept array of PinnedScrollableViews view type.
  • Created section for the Type and initialise Cells and Header/Footer section.

--

--