Advertisement
Guest User

Untitled

a guest
Mar 26th, 2022
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @interface ASDisplayNode : NSObject <UIAccessibilityIdentification>
  2. @property ASDisplayNode *supernode;
  3. @end
  4.  
  5. @interface ASTextNode : ASDisplayNode
  6. @property NSAttributedString *attributedText;
  7. @end
  8.  
  9. %hook ASTextNode
  10. - (void)didLoad {
  11.   %orig;
  12.   if ([self.supernode.accessibilityIdentifier isEqualToString:@"eml.timestamp"])
  13.     self.attributedText = [[NSMutableAttributedString alloc]
  14.         initWithString:@"Hello World!"
  15.             attributes:@{
  16.               NSForegroundColorAttributeName : [UIColor whiteColor],
  17.               NSFontAttributeName : [UIFont systemFontOfSize:14]
  18.             }];
  19. }
  20. %end
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement