Fix: Use MCameraScreen.setCameraPosition() instead of internal cameraManager method

- setCameraPosition is public on MCameraScreen protocol, internal on CameraManager
- Call self.setCameraPosition() instead of cameraManager.setCameraPosition()
This commit is contained in:
Matt Bruce 2026-01-04 15:10:27 -06:00
parent 1c07009e06
commit fee15463d6

View File

@ -173,7 +173,7 @@ struct CustomCameraScreen: MCameraScreen {
currentCameraPosition = newPosition currentCameraPosition = newPosition
Task { Task {
do { do {
try await cameraManager.setCameraPosition(newPosition) try await setCameraPosition(newPosition)
Design.debugLog("Camera switched successfully to \(newPosition)") Design.debugLog("Camera switched successfully to \(newPosition)")
} catch { } catch {
Design.debugLog("Failed to switch camera: \(error)") Design.debugLog("Failed to switch camera: \(error)")