It's sad that these issues still persist after so long - it's been months since I kept on hoping that they'll fix this or provide a decent alternative.
This is so ridiculous that, if the AnchorEntity is on a left or right wall, dragging direction will switch mid-way of dragging along the wall.
Post
Replies
Boosts
Views
Activity
I managed to create a workaround by overwriting `drawPrintFormatter:forPageAtIndex:` in a `UIPrintPageRenderer` subclass:- (void)drawPrintFormatter:(UIPrintFormatter *)printFormatter forPageAtIndex:(NSInteger)pageIndex {
if ([NSStringFromClass([printFormatter class]) isEqualToString:@"UITextViewPrintFormatter"]) {
pageIndex = pageIndex - printFormatter.startPage;
}
return [super drawPrintFormatter:printFormatter forPageAtIndex:pageIndex];
}The code checks if the printFormatter is of `UITextViewPrintFormatter` type, since this seems to replace the `UISimpleTextPrintFormatter` that is passed to the renderer. The `pageIndex` is adjusted based on the `startPage`, since this seems to already be the behavior for `UIMarkupTextPrintFormatter`, and this is the expected behavior when passing the renderer as an activity to `UIActivityViewController`.
I know it's been a long time since this was posted, but this is still an issue in iOS 13.Even without using a custom `UIPageRenderer`, this crashes when adding multiple `UISimplePrintFormatter` to it (same crash reported by OP).Has anyone found any workarounds? One alternative would be to use the `UIMarkupTextPrintFormatter` instead, which I'll probably go with if I can't find no other solutions.