Skip to content

Open source CapCut alternative.

TypeScript

fix(ios): the teleprompter settings open below the button

David Le822061620e57
diff --git a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift
index 6ffe9c39..2b057eff 100644
--- a/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift
+++ b/apps/ios/DonkeyKit/Sources/DonkeyKitUI/CameraScreen.swift
@@ -420,7 +420,9 @@ struct TeleprompterCard: View {
} label: {
Image(systemName: "slider.horizontal.3")
}
- .popover(isPresented: $showsSettings, arrowEdge: .bottom) {
+ // The card rides the top of the screen, so the sliders drop
+ // below the button; upward they run off under the status bar.
+ .popover(isPresented: $showsSettings, arrowEdge: .top) {
TeleprompterSettingsView(camera: camera)
.presentationCompactAdaptation(.popover)
}