Declaration
compose().speechAdjustedPitch(value: number)func speechAdjustedPitch(_ value: Double) -> TextParameters
value*numberThe amount to raise or lower the pitch. Values between
-1and0result in a lower pitch while values between0and1result in a higher pitch. The method clamps values to the range-1to1.
Discussion
Use this modifier when you want to change the pitch of spoken text. The value indicates how much higher or lower to change the pitch.
See also
More in Text modifiers.
- accessibilityHeadingSets the accessibility level of this heading.
- accessibilityLabelAdds a label to the view that describes its contents.
- accessibilityTextContentTypeSets an accessibility text content type.
- baselineOffsetSets the vertical offset for the text relative to its baseline.
- boldApplies a bold font weight to the text.
- fontSets the default font for text in the view.
- fontDesignSets the font design of the text.
- fontWeightSets the font weight of the text.
- fontWidthSets the font width of the text.
- foregroundStyleSets the style of the text displayed by this view.
- italicApplies italics to the text.
- kerningSets the spacing, or kerning, between characters.