Skip to content

Commit

Permalink
Fix API availability for tvOS 9
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Dec 4, 2018
1 parent 2b180ac commit f16fed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/AcknowListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ open class AcknowListViewController: UITableViewController {
label.numberOfLines = 0
label.textAlignment = .center
label.autoresizingMask = [.flexibleLeftMargin, .flexibleRightMargin]
if #available(iOS 10.0, *) {
if #available(iOS 10.0, tvOS 10.0, *) {
label.adjustsFontForContentSizeCategory = true
}

Expand Down Expand Up @@ -349,7 +349,7 @@ open class AcknowListViewController: UITableViewController {
label.textAlignment = .center
label.autoresizingMask = [.flexibleLeftMargin, .flexibleRightMargin]
label.isUserInteractionEnabled = true
if #available(iOS 10.0, *) {
if #available(iOS 10.0, tvOS 10.0, *) {
label.adjustsFontForContentSizeCategory = true
}

Expand Down

0 comments on commit f16fed5

Please sign in to comment.