MarkdownTextView | Forms component to display markdown text
kandi X-RAY | MarkdownTextView Summary
kandi X-RAY | MarkdownTextView Summary
A Xamarin.Forms component to display markdown text in a TextView.
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 MarkdownTextView
MarkdownTextView Key Features
MarkdownTextView Examples and Code Snippets
Community Discussions
Trending Discussions on MarkdownTextView
QUESTION
I am using MarkdownTextView to add basic markdown to a UITextView
. The TextView
is a subclass of MarkdownTextView
.
However when using copy and paste I get the following error
Fatal error: Use of unimplemented initializer 'init()' for class MarkdownTextStorage
This is how I use the TextStorage in my ViewController
...ANSWER
Answered 2018-Dec-01 at 09:15In the stack trace and console output you can see that the Objective-C side tries to call the initializer without arguments.
One might think there is one supplied with default value parameter, but that would just work from Swift side, because it is not exposed to the Objective-C side.
So if coming from an Objective-C background one might think, that the intializer might be inherited. But that's not the case with Swift:
Initializer Inheritance and Overriding
Unlike subclasses in Objective-C, Swift subclasses do not inherit their superclass initializers by default.
see here: https://docs.swift.org/swift-book/LanguageGuide/Initialization.html
Solution
So if you supply an initializer without parameters like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MarkdownTextView
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