Skip to content

Commit bb8bebf

Browse files
committed
Chip away at Swift 6
1 parent ee947c5 commit bb8bebf

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Sources/GameMath/3D Types/Matrix4x4.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ extension Matrix4x4 {
667667
//MARK: - Operators
668668
#if GameMathUseSIMD
669669
#if canImport(simd)
670-
import simd
670+
public import simd
671671
#endif
672672
public extension Matrix4x4 {
673673
@inlinable

Sources/GameMath/3D Types/Vector3.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
*/
77

88
#if GameMathUseSIMD && canImport(simd)
9-
import simd
9+
public import simd
1010
#endif
1111

1212
#if GameMathUseSIMD && canImport(Accelerate)
13-
import Accelerate
13+
public import Accelerate
1414
#endif
1515

1616
#if GameMathUseSIMD

Sources/GameMath/Interpolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#if GameMathUseSIMD && canImport(simd)
9-
import simd
9+
public import simd
1010
#endif
1111

1212
public struct InterpolationOptions: OptionSet, Sendable {

Sources/GameMath/Vector4.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
#if GameMathUseSIMD
99
#if canImport(simd)
10-
import simd
10+
public import simd
1111
#endif
1212
#if canImport(Accelerate)
13-
import Accelerate
13+
public import Accelerate
1414
#endif
1515

1616
public protocol Vector4: SIMD, Equatable, Sendable, ExpressibleByFloatLiteral where FloatLiteralType == Float, Scalar == Float, MaskStorage == SIMD4<Float>.MaskStorage, ArrayLiteralElement == Scalar {

Sources/GateEngine/Resources/Text/Text.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public final class Text {
3636
return _geometry
3737
}
3838
private var _size: Size2 = .zero
39-
public var size: Size2 {
39+
@MainActor public var size: Size2 {
4040
if needsUpdateGeometry, font.state == .ready {
4141
needsUpdateGeometry = false
4242
Task { @MainActor in

0 commit comments

Comments
 (0)