TextDesignSpriteModel

@available(iOS 9.0, *)
public struct TextDesignSpriteModel : SpriteModel, Equatable
extension TextDesignSpriteModel: NormalizedCenterable
extension TextDesignSpriteModel: NormalizedWidthSettable
extension TextDesignSpriteModel: NormalizedPaddable
extension TextDesignSpriteModel: Rotatable
extension TextDesignSpriteModel: VerticallyFlippable
extension TextDesignSpriteModel: HorizontallyFlippable

A TextDesignSpriteModel holds information about a text design that should be added to an image.

Properties

  • The identifier of the TextDesign that should be added to an image.

    Declaration

    Swift

    public var identifier: String

Initializers

  • Creates a new TextDesignSpriteModel with the given identifier.

    Declaration

    Swift

    public init(identifier: String)

    Parameters

    identifier

    The identifier of the TextDesign that should be added to an image.

Custom Properties

  • The text that should be added to an image.

    Declaration

    Swift

    public var text: String?
  • The color of the text design.

    Declaration

    Swift

    public var tintColor: UIColor
  • The seed used for the randomizer.

    Declaration

    Swift

    public var randomizerSeed: UInt64
  • Whether the text design should be drawn inverted.

    Declaration

    Swift

    public var isInverted: Bool