13
13
@_exported import Intents
14
14
import Foundation
15
15
16
- #if os(iOS) || os(watchOS) || os(macOS)
16
+ #if os(iOS) || os(watchOS)
17
17
18
18
public protocol _INIntentSetImageKeyPath { }
19
19
20
20
extension _INIntentSetImageKeyPath {
21
21
22
- @available ( iOS 12 . 0 , watchOS 5 . 0 , macOS 10 . 14 , * )
22
+ @available ( iOS 12 . 0 , watchOS 5 . 0 , * )
23
23
public func setImage< Value> ( _ image: INImage ? , forParameterNamed parameterName: KeyPath < Self , Value > ) {
24
24
if let keyPathString = parameterName. _kvcKeyPathString {
25
25
( self as! INIntent ) . __setImage ( image, forParameterNamed: keyPathString)
26
26
}
27
27
}
28
28
29
- @available ( iOS 12 . 0 , watchOS 5 . 0 , macOS 10 . 14 , * )
29
+ @available ( iOS 12 . 0 , watchOS 5 . 0 , * )
30
30
public func image< Value> ( forParameterNamed parameterName: KeyPath < Self , Value > ) -> INImage ? {
31
31
if let keyPathString = parameterName. _kvcKeyPathString {
32
32
return ( self as! INIntent ) . __image ( forParameterNamed: keyPathString)
@@ -36,7 +36,7 @@ extension _INIntentSetImageKeyPath {
36
36
}
37
37
}
38
38
39
- @available ( iOS 10 . 0 , watchOS 3 . 2 , macOS 10 . 12 , * )
39
+ @available ( iOS 10 . 0 , watchOS 3 . 2 , * )
40
40
extension INIntent : _INIntentSetImageKeyPath { }
41
41
42
42
#endif
0 commit comments