This content originally appeared on flaviocopes.com and was authored by flaviocopes.com
The Label view is used in views like TabView to show an icon and some text.
You create it by passing the text label as the first argument, and then another string to the systemImage
parameter, which identifies the icon.
Like this:
Label("Calendar", systemImage: "calendar")
This will be the result:
The argument passed to the systemImage
parameter is one of the SF Symbols
icons.
This content originally appeared on flaviocopes.com and was authored by flaviocopes.com
flaviocopes.com | Sciencx (2021-10-05T05:00:00+00:00) SwiftUI: the Label view. Retrieved from https://www.scien.cx/2021/10/05/swiftui-the-label-view/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.