Closed espenrl closed 9 months ago
Good find! You're right the full type name is incorrect for AttachmentViewModel
.
The other one I think it just need to change from Map.LoadStatus
to GeoModel.LoadStatus
https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/blob/8117823c0bcb48b22e4b7b9102936557de0fd8fb/src/Toolkit/Toolkit.Maui/OverviewMap/OverviewMap.cs#L36
Having said that, trimming in .NET MAUI is still pretty limited and causing a lot of issues beyond the .NET SDKs's own libraries - even .NET MAUI has lots of issues and are still working through it. Generally I'd recommend turning trimming off for Esri.ArcGISRuntime since especially bindings are causing a lot of issues since MAUI can't properly analyze and preserve properties you're binding to. If you want to keep trimming on for our libraries, expect doing a lot of these DynamicDependency
attributes for things you bind to but don't access directly in code-behind, and as this issue shows, it can be pretty error-prone.
Hi, I'm experiencing some issues with trimming on iOS and Android using toolkit
200.3.0
.Temporary fix
Investigation
https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/blob/8117823c0bcb48b22e4b7b9102936557de0fd8fb/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Maui.cs#L76-L80
AttachmentViewModel
is a private class nested insideAttachmentsPopupElementView
. I guess the full type name is incorrect.https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/blob/8117823c0bcb48b22e4b7b9102936557de0fd8fb/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Maui.cs#L189-L194
I haven't investigated the second error..