Skip to content

Initializer

init(name:value:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Creates a new query item with the name and value you specify.
init(name: String, value: String?)

Parameters

name

The name for the query item.

value

The value for the query item.