Skip to content

Commit af00487

Browse files
committed
Make APIs using INImage unavailable on macOS
<rdar://problem/47673006>
1 parent bcdc9e7 commit af00487

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/Darwin/Intents/INIntent.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
@_exported import Intents
1414
import Foundation
1515

16-
#if os(iOS) || os(watchOS) || os(macOS)
16+
#if os(iOS) || os(watchOS)
1717

1818
public protocol _INIntentSetImageKeyPath { }
1919

2020
extension _INIntentSetImageKeyPath {
2121

22-
@available(iOS 12.0, watchOS 5.0, macOS 10.14, *)
22+
@available(iOS 12.0, watchOS 5.0, *)
2323
public func setImage<Value>(_ image: INImage?, forParameterNamed parameterName: KeyPath<Self, Value>) {
2424
if let keyPathString = parameterName._kvcKeyPathString {
2525
(self as! INIntent).__setImage(image, forParameterNamed: keyPathString)
2626
}
2727
}
2828

29-
@available(iOS 12.0, watchOS 5.0, macOS 10.14, *)
29+
@available(iOS 12.0, watchOS 5.0, *)
3030
public func image<Value>(forParameterNamed parameterName: KeyPath<Self, Value>) -> INImage? {
3131
if let keyPathString = parameterName._kvcKeyPathString {
3232
return (self as! INIntent).__image(forParameterNamed: keyPathString)
@@ -36,7 +36,7 @@ extension _INIntentSetImageKeyPath {
3636
}
3737
}
3838

39-
@available(iOS 10.0, watchOS 3.2, macOS 10.12, *)
39+
@available(iOS 10.0, watchOS 3.2, *)
4040
extension INIntent : _INIntentSetImageKeyPath { }
4141

4242
#endif

0 commit comments

Comments
 (0)