Skip to content

Commit 5522cd3

Browse files
committed
Added @avaiability in tvOS 11
1 parent 3ab4cd9 commit 5522cd3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Sources/SwiftRichString/Style/Style.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +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, *)
331332
@available(iOS 11.0, *)
332333
@available(iOSApplicationExtension 11.0, *)
333334
public var speakingPronunciation: String? {
@@ -341,6 +342,7 @@ public class Style: StyleProtocol {
341342
///
342343
/// The default behavior is to interrupt existing speech.
343344
@available(iOS 11.0, *)
345+
@available(tvOS 11.0, *)
344346
@available(iOSApplicationExtension 11.0, *)
345347
public var shouldQueueSpeechAnnouncement: Bool? {
346348
set {
@@ -362,8 +364,9 @@ public class Style: StyleProtocol {
362364
/// Specify the heading level of the text.
363365
/// Value is a number in the range 0 to 6.
364366
/// Use 0 to indicate the absence of a specific heading level and use other numbers to indicate the heading level.
365-
@available(iOSApplicationExtension 11.0, *)
366367
@available(iOS 11.0, *)
368+
@available(tvOS 11.0, *)
369+
@available(iOSApplicationExtension 11.0, *)
367370
public var headingLevel: HeadingLevel? {
368371
set {
369372
let key = NSAttributedStringKey(UIAccessibilityTextAttributeHeadingLevel)

SwiftRichString.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@
16891689
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
16901690
SWIFT_VERSION = 4.0;
16911691
TARGETED_DEVICE_FAMILY = 3;
1692-
TVOS_DEPLOYMENT_TARGET = 11.0;
1692+
TVOS_DEPLOYMENT_TARGET = 10.0;
16931693
};
16941694
name = Debug;
16951695
};
@@ -1715,7 +1715,7 @@
17151715
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
17161716
SWIFT_VERSION = 4.0;
17171717
TARGETED_DEVICE_FAMILY = 3;
1718-
TVOS_DEPLOYMENT_TARGET = 11.0;
1718+
TVOS_DEPLOYMENT_TARGET = 10.0;
17191719
};
17201720
name = Release;
17211721
};

0 commit comments

Comments
 (0)