TextDesign
@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] { get set }
-
Creates the default text designs that are shipped with the SDK.
Declaration
Swift
public class var defaultItems: [TextDesign] { get }
-
The pool of text designs available within the SDK.
Note
This is a wrapper forAssetCatalog.shared
.Declaration
Swift
public static var all: [TextDesign] { get set }
-
Get the text design from the pool with the given identifier.
Note
This is a wrapper for
AssetCatalog.shared
.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 }
-
Do not use this initializer!
Attention
It should not be public but it is currently required to workaround issues with generated.swiftinterface
files.Declaration
Swift
public override init()