Instance Method
インスタンスメソッド
speechAlwaysIncludesPunctuation(_:)
Sets whether VoiceOver should always speak all punctuation in the text view.
Declaration
宣言
func speechAlwaysIncludesPunctuation(_ value: Bool
= true) -> Text
Parameters
パラメータ
value
A Boolean value that you set to true
if VoiceOver should speak all punctuation in the text. Defaults to true
.
Discussion
議論
Use this modifier to control whether the system speaks punctuation characters in the text. You might use this for code or other text where the punctuation is relevant, or where you want VoiceOver to speak a verbatim transcription of the text you provide. For example, given the text:
Text("All the world's a stage, " +
"And all the men and women merely players;")
.speechAlwaysIncludesPunctuation()
VoiceOver would speak “All the world apostrophe s a stage comma and all the men and women merely players semicolon”.
By default, VoiceOver voices punctuation based on surrounding context.