SimpleBoilerplates / SwiftUI-Cheat-Sheet

SwiftUI 2.0 Cheat Sheet
MIT License
4.37k stars 305 forks source link

Grouped section with header and footer text #20

Closed m5o closed 5 years ago

m5o commented 5 years ago

Apple is using the grouped sections a lot in their iOS setting app. Do the sections also provide a footer parameter?

In most of The iOS Interface the header text is uppercase and the footer small and gray-ish. Will this be handled by SwiftUI in the future?

Thank you for building this reference!

iNoles commented 5 years ago

Section(header=Text("Header"), footer=Text("Footer"))

m5o commented 5 years ago

Thank you @iNoles It would be nice if this could be added to the cheat sheet including a screenshot.

Sadmansamee commented 5 years ago

@iNoles @m5o why not make PR for this!

heyjaywilson commented 5 years ago

@Sadmansamee I'm trying to make an example for this, but are there any tips on how to get the screenshots? Or should I just submit a PR for the code and someone else can do the screenshot.

I've put it in my PR anyway, but left the screenshot out.