musictheory / SwiffCore

.swf parsing and rendering framework for Mac OS X and iOS

Home Page:http://www.musictheory.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENH: Clickable/tappable <a> links in dynamic text

iccir opened this issue · comments

Currently, SwiffHTMLToCoreTextConverter doesn't handle <a> elements.

Work to do:
• Add a new text attribute similar to SwiffTextVerticalOffsetAttributeName, this would contain an NSURL or NSString
• When SwiffHTMLToCoreTextConverter encounters <a>, add this attribute to the CFAttributedStringRef
• Ultimately pipe this up through SwiffPlacedDynamicText to SwiffView, which would create tappable/clickable hotspots.