Skip to content

Commit

Permalink
Fix code availability annotations for tvOS 11
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Jun 25, 2018
1 parent 2d1fc07 commit 6183ab5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions AcknowList.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
};
Expand All @@ -440,6 +441,7 @@
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Release;
};
Expand Down
4 changes: 2 additions & 2 deletions Example/AcknowExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 11.2;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
};
Expand All @@ -483,7 +483,7 @@
SDKROOT = appletvos;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 11.2;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion Source/AcknowViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ open class AcknowViewController: UIViewController {
}
}

@available(iOS 11.0, *) open override func viewLayoutMarginsDidChange() {
@available(iOS 11.0, tvOS 11.0, *) open override func viewLayoutMarginsDidChange() {
super.viewLayoutMarginsDidChange()

if let textView = textView {
Expand Down

0 comments on commit 6183ab5

Please sign in to comment.