TextSpriteModel

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

A TextSpriteModel holds information about a text 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 text alignment of the text.

    Declaration

    Swift

    public var textAlignment: NSTextAlignment
  • The color of the text.

    Declaration

    Swift

    public var textColor: UIColor
  • The identifier of the Font of the text.

    Declaration

    Swift

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

    Declaration

    Swift

    public var backgroundColor: UIColor