TextDesign
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTextDesign)
public class TextDesign : NSObject
The base class for all text designs.
-
When a specific text design’s layout is changed or contains bugs, a legacy, backwards compatible version of it is created and added to this array. This ensures that older serializations can still be loaded with the same look. If you do not want to support backwards compatibility, just set this to an empty array.
Declaration
Swift
public static var legacy: [TextDesign] = [ TextDesignSunshine_V3_1_0(), TextDesignBlocksLight_V3_1_0() ]
-
The pool of text designs available within the SDK.
Declaration
Swift
public static var all: [TextDesign] = [ TextDesignBlocks(), TextDesignRotated(), TextDesignBlocksLight(), TextDesignEqualWidth(), TextDesignMasked(), TextDesignCelebrate(), TextDesignSunshine(), TextDesignMaskedBadge(), TextDesignBlocksCondensed(), TextDesignCelebrateSimple(), TextDesignEqualWidthFat(), TextDesignWatercolor(), TextDesignParticles(), TextDesignMaskedSpeechBubble(), TextDesignMaskedSpeechBubbleComic(), TextDesignMultiline() ]
-
Get the text design from the pool with the given identifier.
Declaration
Swift
public static func textDesign(withIdentifier identifier: String) -> TextDesign?
Parameters
identifier
An identifier.
Return Value
The text design that matches the identifier,
nil
otherwise.
-
The identifier of the layout.
Declaration
Swift
public var identifier: String { get }