This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // implementation of UITextView subclass | |
| // editableプロパティをNO, selectableプロパティをYESにする | |
| // リンクのところ以外のタッチを透過する | |
| - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { | |
| CGPoint p = point; | |
| p.y -= self.textContainerInset.top; | |
| p.x -= self.textContainerInset.left; | |
| NSInteger i = [self.layoutManager characterIndexForPoint:p inTextContainer:self.textContainer fractionOfDistanceBetweenInsertionPoints:NULL]; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // | |
| // AttributedString.swift | |
| // | |
| // Created by fm.tonakai on 2019/04/08. | |
| // | |
| import UIKit | |
| public struct AttributedString: ExpressibleByStringLiteral, ExpressibleByStringInterpolation, CustomStringConvertible { | |
| public struct StringInterpolation: StringInterpolationProtocol { | 
OlderNewer