Sticky Header with SwiftUI

Lawrence Tan
The Startup
Published in
2 min readMay 10, 2020

--

SwiftUI is a powerful declarative framework which allows us to write a UIKit UITableView in just a few lines of code!

Today, I am going to show you how you can incorporate Picker , which is SwiftUI’s way of calling UISegmentedControl, into a List, to toggle between data.

By the end of this tutorial, you will know how to stick any view in your List view! Let’s get started!

--

--

Lawrence Tan
The Startup

Googler. Loves God, Loves my wife, Loves my Family & Corgis.