79686294

Date: 2025-07-01 15:44:45
Score: 1.5
Natty:
Report link

In iOS 18 and later, an official API has been added to retrieve the tag value, making it easier to implement custom pickers and similar components.

https://developer.apple.com/documentation/swiftui/containervalues/tag(for:)

func tag<V>(for type: V.Type) -> V? where V : Hashable
func hasTag<V>(_ tag: V) -> Bool where V : Hashable
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kngw Kngw