Skip to content

String interpolation in SwiftUI Text doesn't work with system locale correctly #169

Description

@yo1995
Text("Z-value: \(model.zValue.formatted(.measurement(width: .narrow).locale(Locale(identifier: "en-CA"))))")

Shows as "Z-value: 70m"

Text("Z-value: \(model.zValue, format: .measurement(width: .narrow).locale(Locale(identifier: "en-CA")))")

Shows as "Z-value: 230'"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    iOS 17 and Beyond

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions