Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Florian
Florian
@Typ0genius@mastodon.social  ·  activity timestamp 7 days ago

Have you ever heard of LabeledContent? This element powers popular controls like pickers, steppers, and toggles. It lets you associate a value with a label, especially useful in lists. Explore its usage and variants here:
https://exploreswiftui.com/library/labeledcontent

#iOSDev #SwiftUI

Explore SwiftUI

LabeledContent - SwiftUI Components

A container for attaching a label to a value-bearing view. Explore 3 SwiftUI labeledcontent components with code examples.
  • Copy link
  • Flag this post
  • Block
Florian
Florian
@Typ0genius@mastodon.social  ·  activity timestamp 7 days ago

If you’re wondering about the difference between .badge and LabeledContent in a List: on iOS there’s hardly any visible difference, except the badge appears slightly darker. On macOS, the badge value is smaller than the LabeledContent value.

Screenshot showing LabeledContent first and .badge second in a macOS list.
Screenshot showing LabeledContent first and .badge second in a macOS list.
Screenshot showing LabeledContent first and .badge second in a macOS list.
  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.32 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct