skip icon indicating copy to clipboard operation
skip copied to clipboard

Locale.current.currency?.identifier: Skip is unable to determine the owning type...

Open djryanash opened this issue 1 year ago • 4 comments

Here:

public var body: some View {
        Form {
            Section {
                TextField("Amount", value: $checkAmount, format: .currency(code: Locale.current.currency?.identifier ?? "USD"))
            }
            Section {
                Text(checkAmount, format: .currency(code: Locale.current.currency?.identifier ?? "USD"))
            }
        }
    }

I'm getting:

Skip is unable to determine the owning type for member 'currency'. This often occurs when other issues prevent Skip from matching the surrounding API call, and it may resolve when those issues are fixed. Or add the owning type explicitly (e.g. MyType.currency)

EDIT: I see that the Locale API is fully supported via SkipFoundation.

djryanash avatar May 26 '24 13:05 djryanash