Use Header and Footer For a List Section
Daily Coding Tip 239
It’s possible to have a header and a footer for every Section in a List or Form.
This is the initialiser I’ll be using:
extension Section where Parent : View, Content : View, Footer : View {
init(header: Parent, footer: Footer, content: () -> Content)
}Notice that the header is called Parent by Apple, but the footer is…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

