-
Notifications
You must be signed in to change notification settings - Fork 514
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
Cannot visualize on IOS #800
Comments
@beto-rodriguez as you mentioned in the issue here I added |
https://github.com/canperk/LiveChartMAUI_IOS_issue is the reproduced version. A Basic line chart is not able to shown on IOS. YOu can use this as a reference. Maybe I am missing a silly detail. I just followed the Getting Started Stuffs |
Hi @beto-rodriguez |
We're seeing the same issue on iOS. Simplest of charts, static ISeries[], copied from Samples. Just a blank view. |
I experience the same. Windows and Android is working well. iOS is showing blank. |
This should be fixed soon, will be apriority for the next release. |
This is such good news, thank you.
Without this fix we cannot use LiveCharts2 which saddens me because they
are so superior to the alternatives
I wish you well for a speedy fix!
Kind regards
Scott
…On Sat, 17 Jun 2023 at 07:13, Alberto Rodríguez ***@***.***> wrote:
This should be fixed soon, will be apriority for the next release.
—
Reply to this email directly, view it on GitHub
<#800 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACLWV7S72PCO6RJDO3B5Y3LXLSV6FANCNFSM6AAAAAASTRFZEM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Same issue here, is there a workaround or an expected time frame for a fix in the near future? |
I got it working now. |
This should be probably fixed if you update your MAUI/dotnet version, I have seen a lot of issues fixed when I upgraded from net 6.0 to net7.0, anyways I keep investigating this. |
still broken for us on the latest Maui stable and .net 7.0. Appreciate your investigation. |
Same issue here. Changed nuget version, changed .NET version etc. Doesn't work. |
I just updated to 2.0.0-beta.810 (from beta 802) and with latest .Net7 I have the same issue. Doesn't work at iOS (16.5.1) but works fine at Android (emulator). |
After checking this out and setting up my Mac environment again I was able to deploy the sample provided in this repository to an iPad. I was able to run this repo on iOS, this is the sample provided in this repo I just published it to an iPad without issues: maui-works.mp4Well, this is the dev branch version (not published to NuGet yet), but is just the MauiSample provided in this repo; In the last days I updated the Maui view of the library to net 7, that fixed some zooming and panning issues for me, I am not sure if this update fixed this issue, I see a couple of options to try to fix this error for your case:
|
Update You can discard option 1, the library is working with the latest NuGet package (beta.810), the following repo is just a really basic app and is working on iOS also: https://github.com/beto-rodriguez/MauiApp-LiveCharts VID_20230713_190257.mp4Please verify your development environment (dotnet version, visual studio, MacOS) and try to publish https://github.com/beto-rodriguez/MauiApp-LiveCharts to your iOS device again, see the readme file in that repo for more info. |
Your issue could also be caused by #1063, it will be fixed once there is a stable release of SkiaSharp 2.88.4 |
I just cloned your repo and tried your sample and it doesn't work at my environment. It deploys fine but at iOS the view is blank. I have .NET 7.0.306. VS 17..6.5. IOS 16.5.1. I don't use Mac for now but only iTunes 12.12.9.4 but I guess that can't be the cause. Everything else works fine. What do you think? |
I don't discard that the issue exists, it is just that we have not found what triggers it, so any feedback would be useful to find this. Being honest, I don't think that the issue is in this library, we are not doing anything special for the iOS view, we are only using the SkiaSharp view for MAUI, this issue seems out of the scope of this library. You could also be affected by dotnet/maui#7350. They now removed the |
I just published beta.860, this version removes the support for the XAML designer (which just noticed is not actually supported on MAUI), please let me know if that fixed the issue. |
I just tried 860 and unfortunately it didn't fix the issue. |
I had the same problem. The only way i could fix it on iOS (for now) is to add HorizontalOptions = FillAndExpand + VerticalOptions = FillAndExpand on the chart object in xaml. Hope this comment helps someone avoiding hours of debugging! |
Thanks for your feedback @concer22. |
Ok weird, same specs here and it works. Maybe if i post the whole code you can get it to work for you. It seems the chart is very sensitive for properties being there or not that can influence the height/width. The wrong property there means an invisible chart on iOS. (works fine in android)
|
ok finally an update and some good news. Our charts on iOS started working! |
@ScottyLightnin Those are good news! thanks for the feedback, I will try to find the issue, at least now we know a workaround. |
@ScottyLightnin that is very cool with a workaround. Just to be sure - is it a correct assumption that you use VS for Mac to build and deploy? So no Windows at all in this case. |
Windows VS with Mac remote bridge also works for us. The only failure was deploying direct to local iOS from windows. |
I saw this issue with SkiaSharp based libraries multiple times recently, e.g. Mapsui/Mapsui#1872 (comment) Here is an original SkiaSharp issue about the same problem: Limitation of HotReload:
see https://learn.microsoft.com/en-us/dotnet/maui/ios/hot-restart#limitations Solution: Do not directly connect your iOS devices to your Windows dev machine but use a Mac remote bridge... |
Is this mean it will work when we publish it? |
Describe the bug
When I try to use charts as basic usage. Android works fine but on IOS it shows only an empty space
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Chart is shown
Screenshots
Smartphone:
The text was updated successfully, but these errors were encountered: