RichTextKit | Rich text rendering for SkiaSharp | Data Manipulation library
kandi X-RAY | RichTextKit Summary
kandi X-RAY | RichTextKit Summary
RichTextKit is a rich-text layout, measurement and rendering library for SkiaSharp.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RichTextKit
RichTextKit Key Features
RichTextKit Examples and Code Snippets
Community Discussions
Trending Discussions on RichTextKit
QUESTION
I have a solution with two projects: a .NET Standard and an iOS project which references the .NET Standard project.
If the .NET Standard does not reference System.Memory nuget package (specifically versions 4.5.3 or 4.5.4), everything works fine. If I add a reference to System.Memory in the .NET Standard project, then my iOS project crashes with a MissingMethodException.
Note: This problem is iOS only, it does not reproduce on Xamarin Android.
How can I solve this problem?
DetailsMy project is using the TopTen.RichTextKit library ( https://www.nuget.org/packages/Topten.RichTextKit/ ) to perform text block measurement. When I run my code on iOS, I get the following crash when calling TextBlock.MeasuredHeight:
...ANSWER
Answered 2022-Jan-03 at 18:38I have found a workaround - by referencing System.Memory version 4.5.0 (specifically this version) in my iOS project, my project runs. I can continue to reference System.Memory 4.5.4 in my .NET Standard project, so the only change needed is in the iOS project.
Note that this means my solution is referencing mixed versions of System.Memory, which I believe is not recommended. However, in this case it is the only solution I could find to this problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RichTextKit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page