A set of animatable weight values that collectively represent
the blending amounts for all the blend shapes' blend targets.
Members (7)
get · iOS 18.0+
startIndex
TypeScript
get startIndex(): number
Swift declaration
var startIndex: BlendShapeWeights.Index { get }
An index to the first weight in the collection.
For more on the sequence's beginning index, see
<doc://com.apple.documentation/documentation/swift/array/1541237-startindex>.
Returns the position in the sequence of the weight that follows the given
position.
For more on calculating indices, see
<doc://com.apple.documentation/documentation/swift/array/1787306-index>.
Returns the position in the sequence of the weight that preceeds the
given position.
For more on calculating indices, see
<doc://com.apple.documentation/documentation/swift/array/1782301-index>.
get · iOS 18.0+
endIndex
TypeScript
get endIndex(): number
Swift declaration
var endIndex: BlendShapeWeights.Index { get }
An index to the last weight in the collection.
For more more on the sequence's final index, see
<doc://com.apple.documentation/documentation/swift/array/1539310-endindex>.
init · iOS 18.0+
init
TypeScript
static init(): BlendShapeWeights
Swift declaration
init()
Initializes a collection of animatable weights for a blend shape.
init<S>(_ weights: S) where S : Sequence, S.Element == Float
Initializes a collection of weights for a single blend shape.
- Parameters:
- weights: An array of float weights for the blend shape.
subscript · iOS 18.0+
subscript
TypeScript
subscript(index: number): number
Swift declaration
subscript(index: BlendShapeWeights.Index) -> Float { get set }
Accesses a single weight in the collection at the given index.
For more on accessing elements by index, see
<doc://com.apple.documentation/documentation/swift/array/1540606-subscript>.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
BlendShapeWeights.init(arrayLiteral:)
A variable number of Swift arguments is not supported.