Contents

subscript(_:as:)

Reads and writes the value associated with the given key as an XPC object.

Declaration

subscript(key: String, as type: any OS_xpc_object.Type = xpc_object_t.self) -> xpc_object_t? { get }

Parameters

  • key:

    The key the look up in the dictionary.

  • type:

    The expected type for the returned value.

Return Value

The value associated with key in the dictionary; otherwise, nil.

See Also

Accessing keys and values