CYRTextView.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // CYRTextView.h
  3. //
  4. // Version 0.2.0
  5. //
  6. // Created by Illya Busigin on 01/05/2014.
  7. // Copyright (c) 2014 Cyrillian, Inc.
  8. // Copyright (c) 2013 Dominik Hauser
  9. // Copyright (c) 2013 Sam Rijs
  10. //
  11. // Distributed under MIT license.
  12. // Get the latest version from here:
  13. //
  14. // https://github.com/illyabusigin/CYRTextView
  15. // Gestures sourced from: https://github.com/srijs/NLTextView
  16. //
  17. // The MIT License (MIT)
  18. //
  19. // Copyright (c) 2014 Cyrillian, Inc.
  20. //
  21. // Permission is hereby granted, free of charge, to any person obtaining a copy of
  22. // this software and associated documentation files (the "Software"), to deal in
  23. // the Software without restriction, including without limitation the rights to
  24. // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  25. // the Software, and to permit persons to whom the Software is furnished to do so,
  26. // subject to the following conditions:
  27. //
  28. // The above copyright notice and this permission notice shall be included in all
  29. // copies or substantial portions of the Software.
  30. //
  31. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  32. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  33. // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  34. // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  35. // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  36. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  37. #import <UIKit/UIKit.h>
  38. #import "CYRToken.h"
  39. @interface CYRTextView : UITextView
  40. @property (nonatomic, strong) NSArray *tokens;
  41. @property (nonatomic, strong) UIPanGestureRecognizer *singleFingerPanRecognizer;
  42. @property (nonatomic, strong) UIPanGestureRecognizer *doubleFingerPanRecognizer;
  43. @property UIColor *gutterBackgroundColor;
  44. @property UIColor *gutterLineColor;
  45. @property (nonatomic, assign) BOOL lineCursorEnabled;
  46. @end