setIndex(_:forSubKeyPath:)
Specifies which item of an array or ordered set to use for the parameter.
Declaration
func setIndex(_ index: Int, forSubKeyPath subKeyPath: String)Parameters
- index:
The index of an object in the array or ordered set.
- subKeyPath:
The path to the property containing an array or ordered set. For example, the key path for the messages property of an Insearchformessagesintentresponse object would be the string
messages.
Discussion
When the key path for a parameter contains an array or ordered set, use this method to specify which object in that array or ordered set to use.