subscript(_:as:)
Reads and writes the value at the given index as an XPC object.
Declaration
subscript(index: Int, as type: any OS_xpc_object.Type = xpc_object_t.self) -> xpc_object_t? { get }Parameters
- index:
The position of the element to access.
- type:
The expected type for the returned value.
Return Value
The value at the specified index in the array, otherwise nil.