Skip to content

Commit 6cdbacc

Browse files
authored
Merge pull request #3420 from milseman/scenekit
[SceneKit] Add apinotes to swift_private some decls
2 parents 553ae8c + cd9b480 commit 6cdbacc

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

apinotes/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ set(SWIFT_API_NOTES_INPUTS
2424
PassKit
2525
QuartzCore
2626
QuickLook
27+
SceneKit
2728
SpriteKit
2829
StoreKit
2930
TVMLKit

apinotes/SceneKit.apinotes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
Name: SceneKit
3+
4+
Protocols:
5+
# The below are methods for which overlays provide better implementations
6+
- Name: SCNBoundingVolume
7+
Methods:
8+
- Selector: 'getBoundingBoxMin:max:'
9+
SwiftPrivate: true
10+
MethodKind: Instance
11+
- Selector: 'setBoundingBoxMin:max:'
12+
SwiftPrivate: true
13+
MethodKind: Instance
14+
- Selector: 'getBoundingSphereCenter:radius:'
15+
SwiftPrivate: true
16+
MethodKind: Instance
17+

stdlib/public/SDK/SceneKit/SceneKit.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,19 @@ extension SCNBoundingVolume {
199199
get {
200200
var min = SCNVector3Zero
201201
var max = SCNVector3Zero
202-
getBoundingBoxMin(&min, max: &max)
202+
__getBoundingBoxMin(&min, max: &max)
203203
return (min: min, max: max)
204204
}
205205
set {
206206
var min = newValue.min
207207
var max = newValue.max
208-
setBoundingBoxMin(&min, max: &max)
208+
__setBoundingBoxMin(&min, max: &max)
209209
}
210210
}
211211
public var boundingSphere: (center: SCNVector3, radius: Float) {
212212
var center = SCNVector3Zero
213213
var radius = CGFloat(0.0)
214-
getBoundingSphereCenter(&center, radius: &radius)
214+
__getBoundingSphereCenter(&center, radius: &radius)
215215
return (center: center, radius: Float(radius))
216216
}
217217
}

0 commit comments

Comments
 (0)