Skip to content

Commit bdfad75

Browse files
authored
Merge pull request #71 from RobertoRiquelme/main
Fixed an issue with the access level of the position in the package
2 parents 20baaa7 + 75c8830 commit bdfad75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Examples/ForceDirectedGraph3D/ForceDirectedGraph3D/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct ContentView: View {
159159
.frame(depth: 10.0)
160160

161161

162-
}.ornament(attachmentAnchor: .scene(alignment: .bottom)) {
162+
}.ornament(attachmentAnchor: .scene(.bottom)) {
163163
Button {
164164

165165
} label: {

Sources/ForceSimulation/Kinetics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ where Vector: SimulatableVector & L2NormCalculatable {
77
///
88
/// Ordered as the nodeIds you passed in when initializing simulation.
99
/// They are always updated.
10-
@usableFromInline
11-
package var position: UnsafeArray<Vector>
10+
/// Exposed publicly so examples & clients can read out the latest positions.
11+
public var position: UnsafeArray<Vector>
1212

1313
// public var positionBufferPointer: UnsafeMutablePointer<Vector>
1414

0 commit comments

Comments
 (0)