Skip to content

Commit b931b6d

Browse files
authored
Make timeZoneDataVersion available in FoundationInternationalization (swiftlang#425)
1 parent c4fa869 commit b931b6d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/FoundationInternationalization/TimeZone/TimeZone_ICU.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ internal final class _TimeZoneICU: _TimeZoneProtocol, Sendable {
478478
return result
479479
}
480480
}
481-
#endif //canImport(FoundationICU)
482481

483482
// MARK: -
484483

@@ -493,11 +492,10 @@ extension TimeZone {
493492
icuTZIdentifiers
494493
}
495494

496-
#if FOUNDATION_FRAMEWORK && canImport(FoundationICU)
497495
/// Returns the time zone data version.
498496
public static var timeZoneDataVersion : String {
499-
// At this time only available in Framework build because of dependency on ICU. When TimeZone sinks to FoundationEssentials, we can make this available everywhere as an extension on TimeZone from FoundationInternationalization.
500497
_TimeZoneICU.timeZoneDataVersion
501498
}
502-
#endif
503499
}
500+
501+
#endif //canImport(FoundationICU)

0 commit comments

Comments
 (0)