Skip to content

Commit

Permalink
Fix build for tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
farshadtx authored and maxxfrazer committed Apr 15, 2024
1 parent 7dff733 commit e6eb54c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/CompleteVertex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 12/06/2021.
//

#if canImport(RealityKit)
import RealityKit

internal struct CompleteVertex {
Expand Down Expand Up @@ -36,3 +37,4 @@ internal extension Array where Element == CompleteVertex {
return meshDescriptor
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/MeshResource+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 14/03/2023.
//

#if canImport(RealityKit)
import RealityKit

public extension MeshResource {
Expand Down Expand Up @@ -54,3 +55,4 @@ public extension MeshResource {
@available(*, deprecated, renamed: "RealityGeometry.PathProperties")
typealias PathProperties = RealityGeometry.PathProperties
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+Cone.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 12/06/2021.
//

#if canImport(RealityKit)
import RealityKit

extension RealityGeometry {
Expand Down Expand Up @@ -163,3 +164,4 @@ extension RealityGeometry {
)
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+Cylinder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 12/06/2021.
//

#if canImport(RealityKit)
import RealityKit

extension RealityGeometry {
Expand Down Expand Up @@ -179,3 +180,4 @@ extension RealityGeometry {
)
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+Path.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 15/10/2021.
//

#if canImport(RealityKit)
import RealityKit
import CoreGraphics
import os
Expand Down Expand Up @@ -229,3 +230,4 @@ fileprivate extension SIMD3 where SIMD3.Scalar: Comparable {
return SIMD3<Scalar>(self.x, 0, self.z)
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+Planes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 11/06/2021.
//

#if canImport(RealityKit)
import RealityKit

extension RealityGeometry {
Expand Down Expand Up @@ -45,3 +46,4 @@ extension RealityGeometry {
return try .generate(from: [descr])
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+Torus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 25/10/2021.
//

#if canImport(RealityKit)
import RealityKit

extension RealityGeometry {
Expand Down Expand Up @@ -85,3 +86,4 @@ extension RealityGeometry {
return allVertices
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+TorusArc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Shawn Coumbe on 12/03/2023.
// Based on code by Max Cobb

#if canImport(RealityKit)
import RealityKit

extension RealityGeometry {
Expand Down Expand Up @@ -166,3 +167,4 @@ extension RealityGeometry {
return allVertices
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+Tube.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Max Cobb on 13/03/2023.
//

#if canImport(RealityKit)
import Foundation
import RealityKit

Expand Down Expand Up @@ -174,3 +175,4 @@ public extension RealityGeometry {

}
}
#endif
2 changes: 2 additions & 0 deletions Sources/RealityGeometries/RealityGeometry+Wedge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Shawn Coumbe on 12/03/2023
// Based on code by Max Cobb

#if canImport(RealityKit)
import RealityKit

extension RealityGeometry {
Expand Down Expand Up @@ -214,3 +215,4 @@ extension RealityGeometry {
)
}
}
#endif

0 comments on commit e6eb54c

Please sign in to comment.