Skip to content

Open source CapCut alternative.

TypeScript

fix(ios): shapes and coordinate-space names stay off the main actor

David Le3a89041904e3
diff --git a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift
index 22b30478..8582bba8 100644
--- a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift
+++ b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift
@@ -42,7 +42,7 @@ struct CameraScreen<CameraPreview: View>: View {
/// gripping the short edge.
private var isSideways: Bool { verticalSizeClass == .compact }
- private static var stageSpace: String { "cameraStage" }
+ private nonisolated static var stageSpace: String { "cameraStage" }
private static var wellSide: CGFloat { 54 }
private static var wellLifetime: Duration { .seconds(30) }
diff --git a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/IdeasScreen.swift b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/IdeasScreen.swift
index 06f17dca..53cb2bdb 100644
--- a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/IdeasScreen.swift
+++ b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/IdeasScreen.swift
@@ -617,7 +617,7 @@ struct NoteCard: View {
}
}
-struct FoldCorner: Shape {
+nonisolated struct FoldCorner: Shape {
func path(in rect: CGRect) -> Path {
var path = Path()
path.move(to: CGPoint(x: rect.maxX, y: rect.minY))