comment & preventing leading text image due to problem.

This commit is contained in:
Kevin G Christiano 2019-07-26 15:21:01 -04:00
parent 6dd7cab8f4
commit a21774b390

View File

@ -406,10 +406,11 @@ public typealias ActionBlock = () -> Void
- index: Location within the associated text to insert an external Link Icon
- Note: You will need to increment your current index by 2 for any changes to the text after inserting an icon.
Each icon insertion adds 2 additional characters to the overall text length.
This implies that you must insert exertal icons in the order they would appear with tappable links.
*/
public func insertExternalLinkIcon(at index: Int) {
guard let attributedText = attributedText, index <= attributedText.string.count && index >= 0 else { return }
guard let attributedText = attributedText, index <= attributedText.string.count && index > 0 else { return }
let mutableString = NSMutableAttributedString(attributedString: attributedText)