Home > front end >  Add explanation/description text below a setting in SwiftUI
Add explanation/description text below a setting in SwiftUI

Time:05-21

In SwiftUI, what is the standard way (or the recommended way) to add "explanation" text to a setting. For example, in the screen shot below of the system Maps app's settings, the Speed Limit toggle has the following explanation text beneath it:

Speed limit information will be shown when available.

settings screen shot

CodePudding user response:

If you want something like the image you posted try Form. It can contain multiple Section where you can provide a header and a footer View.

exmaple

  • Related