PTFreeTextAppearanceContainer

@interface PTFreeTextAppearanceContainer : NSObject

@property (nonatomic, assign) CGSize size;

@property (nonatomic, strong, nullable) UIColor *backgroundColor;

@property (nonatomic, strong, nullable) UIColor *borderColor;

@property (nonatomic, assign) CGFloat borderWidth;

@property (nonatomic, assign) CGFloat alpha;

#pragma mark - Text

@property (nonatomic, readonly, strong) NSTextContainer *textContainer;

@property (nonatomic, readonly, strong) NSLayoutManager *layoutManager;

@property (nonatomic, readonly, strong) NSTextStorage *textStorage;

#pragma mark - Drawing

- (void)drawAtPoint:(CGPoint)point;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGSize size

    Swift

    var size: CGSize { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *backgroundColor

    Swift

    var backgroundColor: UIColor? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *borderColor

    Swift

    var borderColor: UIColor? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGFloat borderWidth

    Swift

    var borderWidth: CGFloat { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGFloat alpha

    Swift

    var alpha: CGFloat { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, strong) NSTextContainer *textContainer

    Swift

    var textContainer: NSTextContainer { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, strong) NSLayoutManager *layoutManager

    Swift

    var layoutManager: NSLayoutManager { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, strong) NSTextStorage *textStorage

    Swift

    var textStorage: NSTextStorage { get }
  • Undocumented

    Declaration

    Objective-C

    - (void)drawAtPoint:(CGPoint)point;

    Swift

    func draw(at point: CGPoint)