Skip to content

Instantly share code, notes, and snippets.

@Palisand
Last active October 9, 2017 21:07
Show Gist options
  • Save Palisand/a6256b29e08c170dbb9b2a96c13e6b24 to your computer and use it in GitHub Desktop.
Save Palisand/a6256b29e08c170dbb9b2a96c13e6b24 to your computer and use it in GitHub Desktop.
Changes for scroll-to-cursor functionality.
/**
* Object containing information about a TextInput's selection.
*/
@interface RCTTextSelection : NSObject
@property (nonatomic, assign, readonly) NSInteger start;
@property (nonatomic, assign, readonly) NSInteger end;
/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
@property (nonatomic, assign, readonly) CGPoint cursorPosition;
- (instancetype)initWithStart:(NSInteger)start end:(NSInteger)end cursorPosition:(CGPoint)cursorPosition;
/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment