Interactive Ink

Iink iOS - Bug when copying an empty

 I found a bug when trying to duplicate a block with an image on a Text Document part:

First, I add an image to the part using

- (nullable IINKContentBlock *)addImage:(CGPoint)position
                                                            file:(nonnull NSString *)file
                                                         error:(NSError * _Nullable * _Nullable)error;

The image appears without any error, then I copy this block using the function copy from the editor.

- (BOOL)copy:(nonnull IINKContentBlock *)block
               error:(NSError * _Nullable * _Nullable)error;

But when I use paste to add a new block with the same image, the result is an empty Drawing block, without the image.

- (BOOL)paste:(CGPoint)position
                error:(NSError * _Nullable * _Nullable)error;

I noticed this only happens when there's no writing on the block before it's copied. If there's as much as a single dot on the first block with the image (before copying it), the copy - paste sequence work as expected.

1 Comment

Dear Just,

thank you for contacting.

This should normally be solved in the coming release (planned before end of the year).

I keep you updated!

Best regards,


1 person likes this
Login or Signup to post a comment