Skip to content

Commit

Permalink
Adjust how AS_ENABLE_TEXT_NODE is used to fix Xcode cmd+click & edito…
Browse files Browse the repository at this point in the history
…r support. (#1546)
  • Loading branch information
maicki authored and Adlai-Holler committed Jun 10, 2019
1 parent a6a03c6 commit 1726148
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Source/ASTextNode2.mm
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,16 @@ @implementation ASTextCacheValue
static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncationAttribute";

#if AS_ENABLE_TEXTNODE
@interface ASTextNode2 () <UIGestureRecognizerDelegate>
#define AS_TN2_CLASSNAME ASTextNode2
#else
@interface ASTextNode () <UIGestureRecognizerDelegate>
#define AS_TN2_CLASSNAME ASTextNode
#endif

@interface AS_TN2_CLASSNAME () <UIGestureRecognizerDelegate>

@end

#if AS_ENABLE_TEXTNODE
@implementation ASTextNode2 {
#else
@implementation ASTextNode {
#endif
@implementation AS_TN2_CLASSNAME {
ASTextContainer *_textContainer;

CGSize _shadowOffset;
Expand Down

0 comments on commit 1726148

Please sign in to comment.