Include macOS available in macro

This commit is contained in:
Balazs Perlaki-Horvath 2024-02-15 22:52:56 +01:00
parent 1a3d382a75
commit fe41532af7

View File

@ -57,7 +57,7 @@ public class LibraryViewModel: ObservableObject {
// populate library language code if there isn't one set already
let currentLanguageCode: String?
if #available(iOS 16, *) {
if #available(iOS 16, macOS 13, *) {
currentLanguageCode = Locale.current.language.languageCode?.identifier(.alpha3)
} else {
// Locale.current.languageCode is returning a 2 char lang code, eg: "en"