ChartView icon indicating copy to clipboard operation
ChartView copied to clipboard

MacOS frame improvement

Open nickseidel opened this issue 6 years ago • 4 comments

Hey, ChartView is working fine on MacOS, but when using ChartView() without the explicit form: CGSize() attribute, then the appearing view is not the actual frame, which results in major glitches when using VStack or HStack (overlapping with other views). Will look into it and might push a PR 📦

nickseidel avatar Sep 12 '19 17:09 nickseidel

Also: Hovering over both ChartViews also doesn't work on macOS

nickseidel avatar Sep 12 '19 19:09 nickseidel

Hey thanks for noticing I didn't tried it on Mac yet. If you can push a PR would be awesome!

AppPear avatar Sep 13 '19 18:09 AppPear

I couldn't work out how to get ChartView working on MacOS - when I do it, the library doesn't compile as it says these features are only available in the latest version of MacOS and suggests adding to almost every line to only run the function if the correct version of MacOS. How did you do this neatly @nickseidel .

ThomasDh-C avatar Jan 25 '20 21:01 ThomasDh-C

@ThomasDh-C In case you never found a solution, I just forked the repo and made some quick tweaks to get it to compile on macOS and marked a release for SwiftPM. You can take a look here: https://github.com/katzenbaer/ChartView

Warning, though... I kinda just threw macros around to disable anything that didn't compile on macOS. So if you're looking for a cross-platform solution, then this isn't at that stage yet. Also, hover still doesn't work.

katzenbaer avatar Apr 21 '20 14:04 katzenbaer