mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
* Trying to make ASTextLinePositionModifier public * d’oh * be a little more restrictive on the files we pull into the pod * Never mind, I guess we need all of these * update the project file as well * try this again * I think this will work this time.
35 lines
762 B
Objective-C
35 lines
762 B
Objective-C
//
|
|
// NSParagraphStyle+ASText.h
|
|
// Texture
|
|
//
|
|
// Copyright (c) Pinterest, Inc. All rights reserved.
|
|
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
Provides extensions for `NSParagraphStyle` to work with CoreText.
|
|
*/
|
|
@interface NSParagraphStyle (ASText)
|
|
|
|
/**
|
|
Creates a new NSParagraphStyle object from the CoreText Style.
|
|
|
|
@param CTStyle CoreText Paragraph Style.
|
|
|
|
@return a new NSParagraphStyle
|
|
*/
|
|
+ (nullable NSParagraphStyle *)as_styleWithCTStyle:(CTParagraphStyleRef)CTStyle;
|
|
|
|
/**
|
|
Creates and returns a CoreText Paragraph Style. (need call CFRelease() after used)
|
|
*/
|
|
- (nullable CTParagraphStyleRef)as_CTStyle CF_RETURNS_RETAINED;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|