chdominguez / Atomic

Modern molecular visualizer for macOS and iOS
MIT License
27 stars 2 forks source link

[REQUEST] visionOS support #45

Open chdominguez opened 7 months ago

chdominguez commented 7 months ago

Is there an existing request for this?

Request

I see a great potential of porting Atomic to visionOS. I saw @jrgoodle trying to make it compile for Apple Vision Pro and this could be a great opportunity to revive the project.

Supporting information

No response

JrGoodle commented 7 months ago

I started work on getting this to run for the native visionOS target rather than the iPad compatibility mode. I have forks adding the necessary visionOS support to all the package dependencies. I figured I'd get those in first, but I could create a PR draft pointing to the forks for now.

I've been starting to get acquainted with the code, but I haven't spent much time with a lot of these api's. I had to remove the dependency on GLKit for one function since that doesn't seem to exist on visionOS, and replaced it with vanilla simd operations. The periodic table view wasn't showing up, but I got that to work. I think a close button will need to be added since tapping outside the view to dismiss doesn't seem to work. Using the visionOS simulator is a bit awkward, but I pre-ordered a Vision Pro so I'm excited to test Atomic out on it next weekend.

I also started to investigate building RDKit for mobile targets to maybe help add more file conversion support without having to reinvent the wheel. It would be nice to have mol file support, since xyz doesn't contain any bond information.