Merge branch 'feature/label_export_box' of gitlab.verizon.com:BPHV_MIPS/mvm_core_ui into feature/label_export_box
This commit is contained in:
commit
5a7acf6a33
@ -408,10 +408,11 @@ public typealias ActionBlock = () -> Void
|
|||||||
- index: Location within the associated text to insert an external Link Icon
|
- 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.
|
- 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.
|
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) {
|
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)
|
let mutableString = NSMutableAttributedString(attributedString: attributedText)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user