currentCountryCode
Fetches the current country code for the user’s Apple Music account.
Declaration
static var currentCountryCode: String { get async throws }Discussion
The current country code may be useful to construct the URL for a MusicDataRequest because a typical catalog endpoint for Apple Music API requires the inclusion of a country code in the path of the corresponding URL.