Contents

supportsLocale(_:)

Returns a Boolean indicating whether the given locale is supported by the model.

Declaration

final func supportsLocale(_ locale: Locale = Locale.current) -> Bool

Mentioned in

Discussion

Use this method over supportedLanguages to check whether the given locale qualifies a user for using this model, as this method will take into consideration language fallbacks.

See Also

Language and locales