Skip to content

Commit 8a6f927

Browse files
committed
Merge branch 'release/2.0.0'
2 parents 3424889 + 9337691 commit 8a6f927

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Sources/SwiftRichString/Style/Style.swift

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@ public class Style: StyleProtocol {
328328

329329
/// No overview available.
330330
/// Note: available only from iOS 11, tvOS 11 and watchOS 4.
331-
@available(tvOS 11.0, *)
332-
@available(iOS 11.0, *)
333-
@available(iOSApplicationExtension 11.0, *)
331+
@available(iOS 11.0, tvOS 11.0, iOSApplicationExtension 11.0, watchOS 4, *)
334332
public var speakingPronunciation: String? {
335333
set { self.set(attribute: newValue, forKey: NSAttributedStringKey(UIAccessibilitySpeechAttributeIPANotation)) }
336334
get { return self.get(attributeForKey: NSAttributedStringKey(UIAccessibilitySpeechAttributeIPANotation)) }
@@ -341,9 +339,7 @@ public class Style: StyleProtocol {
341339
/// When the value is false, the announcement interrupts the existing speech.
342340
///
343341
/// The default behavior is to interrupt existing speech.
344-
@available(iOS 11.0, *)
345-
@available(tvOS 11.0, *)
346-
@available(iOSApplicationExtension 11.0, *)
342+
@available(iOS 11.0, tvOS 11.0, iOSApplicationExtension 11.0, watchOS 4, *)
347343
public var shouldQueueSpeechAnnouncement: Bool? {
348344
set {
349345
let key = NSAttributedStringKey(UIAccessibilitySpeechAttributeQueueAnnouncement)
@@ -364,9 +360,7 @@ public class Style: StyleProtocol {
364360
/// Specify the heading level of the text.
365361
/// Value is a number in the range 0 to 6.
366362
/// Use 0 to indicate the absence of a specific heading level and use other numbers to indicate the heading level.
367-
@available(iOS 11.0, *)
368-
@available(tvOS 11.0, *)
369-
@available(iOSApplicationExtension 11.0, *)
363+
@available(iOS 11.0, tvOS 11.0, iOSApplicationExtension 11.0, watchOS 4, *)
370364
public var headingLevel: HeadingLevel? {
371365
set {
372366
let key = NSAttributedStringKey(UIAccessibilityTextAttributeHeadingLevel)

0 commit comments

Comments
 (0)