Skip to content

make vm init public; namespace some public vars#38

Merged
Liampronan merged 3 commits intomainfrom
api/vm-expose
Apr 3, 2025
Merged

make vm init public; namespace some public vars#38
Liampronan merged 3 commits intomainfrom
api/vm-expose

Conversation

@Liampronan
Copy link
Copy Markdown
Owner

@Liampronan Liampronan commented Apr 3, 2025

This PR makes it so clients can really customize VM.

  • make DualCameraViewModel.init publicly accessible;
  • use environment-based DualCameraController for default value in DualCameraViewModel.init

Tests passing locally (while we wait to get CI tests setup)
image

public var dualCameraController: DualCameraControlling = Self.getDefaultCameraController()


@MainActor
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is triggering a warning re: mainactor isolation. followup issue here #39

@Liampronan Liampronan marked this pull request as ready for review April 3, 2025 05:57
@Liampronan Liampronan merged commit 6b52bb9 into main Apr 3, 2025
2 checks passed
@Liampronan Liampronan deleted the api/vm-expose branch April 3, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant