One Logo Pool Ball
WeatherKit · IOS API REFERENCE

WeatherAttribution

struct · iOS 16.0+ · SDK 27.1

struct WeatherAttribution

A structure that defines the necessary information for attributing a weather data provider. Attribution is required for publishing software using WeatherKit.

Members (11)

get · iOS 16.4+

legalAttributionText

TypeScript
get legalAttributionText(): string
Swift declaration
var legalAttributionText: String { get }

This property returns text that should be made available to users for apps that cannot display the attributionURL contents in a Safari view. It contains language that outlines the weather data sources attribution and is a legal requirement of using WeatherKit.

get · iOS 16.0+

serviceName

TypeScript
get serviceName(): string
Swift declaration
var serviceName: String { get set }

The weather data provider name.

set · iOS 16.0+

serviceName

TypeScript
set serviceName(value: string)
Swift declaration
var serviceName: String { get set }

The weather data provider name.

get · iOS 16.0+

legalPageURL

TypeScript
get legalPageURL(): string
Swift declaration
var legalPageURL: URL { get set }

A link to the legal attribution page that contains copyright information about the weather data sources.

set · iOS 16.0+

legalPageURL

TypeScript
set legalPageURL(value: string)
Swift declaration
var legalPageURL: URL { get set }

A link to the legal attribution page that contains copyright information about the weather data sources.

get · iOS 16.0+

squareMarkURL

TypeScript
get squareMarkURL(): string
Swift declaration
var squareMarkURL: URL { get set }

A URL for the square Apple Weather mark.

set · iOS 16.0+

squareMarkURL

TypeScript
set squareMarkURL(value: string)
Swift declaration
var squareMarkURL: URL { get set }

A URL for the square Apple Weather mark.

get · iOS 16.0+

combinedMarkDarkURL

TypeScript
get combinedMarkDarkURL(): string
Swift declaration
var combinedMarkDarkURL: URL { get set }

A URL for the combined "<logo> Apple Weather" mark, in dark variant.

set · iOS 16.0+

combinedMarkDarkURL

TypeScript
set combinedMarkDarkURL(value: string)
Swift declaration
var combinedMarkDarkURL: URL { get set }

A URL for the combined "<logo> Apple Weather" mark, in dark variant.

get · iOS 16.0+

combinedMarkLightURL

TypeScript
get combinedMarkLightURL(): string
Swift declaration
var combinedMarkLightURL: URL { get set }

A URL for the combined "<logo> Apple Weather" mark, in light variant.

set · iOS 16.0+

combinedMarkLightURL

TypeScript
set combinedMarkLightURL(value: string)
Swift declaration
var combinedMarkLightURL: URL { get set }

A URL for the combined "<logo> Apple Weather" mark, in light variant.

Skipped declarations

No declarations were skipped in this snapshot.

All WeatherKit types →