Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to use an existing CMMotionManager #8

Open
twstokes opened this issue Oct 19, 2022 · 0 comments
Open

Provide a way to use an existing CMMotionManager #8

twstokes opened this issue Oct 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@twstokes
Copy link

Issue

According to Apple's docs for CMMotionManager, only a single object should exist for the app:

Important

Create only one CMMotionManager object for your app. Multiple instances of this class can affect the rate at which data is received from the accelerometer and gyroscope.

If an app already uses CMMotionManager and imports this library, it could potentially cause side effects with the one in AppLogosScene. Perhaps an existing CMMotionManager could be supplied to this library.

Context

We use gyro data for the Jetpack app landing screen which requires a CMMotionManager object.

@twstokes twstokes added the enhancement New feature or request label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant