Comments (6)
Just release the new version!
from marky-mark.
Thanks for your input.
Is it possible to be any more specific? Which parts of markymark are not safe for extensions/frameworks and what solution are you proposing?
Regards,
Jim
from marky-mark.
The problem is the use of UIApplication.shared.openURL(url)
in AttributedInteractiveLabel
. UIApplication
is not extension safe.
The proposed solution is to "hide" the API usage by using NSClassFromString(@"UIApplication")
instead of UIApplication
directly. This approach apparently also worked for SDWebImage.
from marky-mark.
An alternate, less hacky, solution could be delegation, where AttributedInteractiveLabel
would have a delegate that gets informed about opening the url, but that might be a breaking change in the API. Also the AttributedInteractiveLabel
will not be a drop-in solution any more if link handling is required.
from marky-mark.
Thanks for your input @mhoeller-clue, i looked into your pull-request and made #74 inspired by your approach.
This pull request will allow markymark to compile in extension by using NSSelectorFromString("sharedApplication") instead using UIApplication.shared directly.
Also, this pull request will allow customization of the open url behavior by providing an implementation of URLOpener
My collegues will review the pull request and i will let you know as soon as i release a new version. Also, let me know what you think of this approach!
from marky-mark.
Looks perfect! It has much deeper integration throughout the system and extends the example project too 👍
Thanks for putting the work into this library! Looking forward to the new version.
from marky-mark.
Related Issues (20)
- Won't open in Xcode 11.4 HOT 2
- Bold Italic sequence is working. But when you try to do italic bold sequence its not workin. HOT 2
- Dark Mode Support
- [iOS ]Unable to add <br/> tag functionality on MarkDowbTextView(). <br/> as it is display on UI. HOT 2
- MarkyMark does not support `<url>` style links
- Unable to render data corectly when I add "-" in the data HOT 3
- Couldn't convert text containing link when link has prefix exclamation mark HOT 2
- Setting MarkDownTextView.onDidConvertMarkDownItemToView does not work
- Image loading blocking UI HOT 2
- 'Key' is not a member type of 'NSAttributedString' HOT 2
- List items overlapping each other in MarkDownTextView HOT 1
- URLs containing underscores are being italicized HOT 3
- Any way to show latex?
- Handle tap on elements HOT 3
- Marky-Mark is not detecting url automatically. How to enable that?? HOT 4
- Ability to customize UITextView that's created in attributedString configuration of MarkdownTextView HOT 3
- LineBreaks not consistent
- [Q] - Using Local Images HOT 2
- Add spm support HOT 2
- URL handler in attributed string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marky-mark.