I'm trying to change the horizontal position of a NSTextAttachment image within a UITextView. I've tried setting
[attributedString setAttributes:@{NSKernAttributeName:@(1.5)} range:NSMakeRange(0, 1)];
This simply makes the attachment disappear while giving me the appropriate kerning space. I've also tried changing the origin x-coordinate in
- (CGRect)attachmentBoundsForTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex
This has no effect on the horizontal position of the attachment. Please advise.