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

shiftedCoordinates & ProperMotion #119

Open
Saturnyn opened this issue Apr 28, 2023 · 3 comments
Open

shiftedCoordinates & ProperMotion #119

Saturnyn opened this issue Apr 28, 2023 · 3 comments
Labels

Comments

@Saturnyn
Copy link

Hi,
I'm trying to use:
coordinates.shiftedCoordinates(to: .J2000, with: properMotion)

But this will not compile :
'ProperMotion' initializer is inaccessible due to 'internal' protection level

I can not find another way to instantiate ProperMotion in the lib, isn't it just missing a public constructor ?

Thanks

@onekiloparsec
Copy link
Owner

onekiloparsec commented Apr 30, 2023

Hi. PropertMotion is a public struct. But I just discovered that Swift still doesn't synthetize public initializer (see e.g. here.)

I will have to go over all public struct without init, and add initializers.

@onekiloparsec
Copy link
Owner

Ok, ProperMotion and SaturnicentricCoordinates were the only two missing initializers. Will be part of next release (trying right now to close the most recent pending issues).

@Saturnyn
Copy link
Author

Saturnyn commented May 3, 2023

Great, thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants