Pyroh / SlidingRuler

A sliding ruler control for SwiftUI
404 stars 59 forks source link

macOS support #3

Open sindresorhus opened 3 years ago

sindresorhus commented 3 years ago

Would be great to have macOS support.

It doesn't look like there's a lot of UIKit-specific code: https://github.com/Pyroh/SlidingRuler/search?q=uikit

https://stackoverflow.com/questions/14158743/alternative-of-cadisplaylink-for-mac-os-x

When you target iOS 15, you could use TimelineView for the animation.

cyrilzakka commented 5 months ago

@sindresorhus managed to port it to macOS and will push changes to: https://github.com/cyrilzakka/SlidingRuler. Still have to figure out one last issue with scrolling. If you know of any alternative libraries please let me know!

Screenshot 2024-05-30 at 5 18 00 PM
cyrilzakka commented 5 months ago

@sindresorhus Pushed the changes but scrolling still worn't work. Pull request appreciated.

alelordelo commented 1 month ago

@cyrilzakka @sindresorhus , did you get get it working?