I ported the non-android specific accompaniest libraries to Compose desktop for my usage, feel free to use them https://github.com/Syer10/accompanist
👍 1
:thank-you: 1
s
Stefan Oltmann
07/17/2021, 7:40 PM
I will give it a try 🙂
@Mitchell Syer I use the ViewPager now in my project. Works good. Thank you for your effort. 🙂
Did you think about contributing your changes back to the main project? Looks like they could need help.
👍 1
This works for both Android and Desktop without any issues.
m
Mitchell Syer
07/19/2021, 5:51 PM
Most of my changes were just the build files and libraries used. I just ported them to Compose Desktop, not KMP, which is what they want for desktop support. I could try rewriting it for KMP, but I dont have that much time currently.
s
Stefan Oltmann
07/20/2021, 6:27 AM
I don't know what they mean by "KMP", because I just copied the three files that implement the ViewPager into my "commonMain" module and now it works for Android & Desktop...