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()
    ]
  • Creates the default text designs that are shipped with the SDK.

    Declaration

    Swift

    public class var defaultItems: [TextDesign] { get }
  • all

    The pool of text designs available within the SDK.

    Note

    This is a wrapper for AssetCatalog.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 }