TextScreenObject

public final class TextScreenObject : ScreenObject

An object that manages offscreen rendering a text source.

  • Specifies the text value.

    Declaration

    Swift

    public var string: String { get set }
  • Specifies the attributes for strings.

    Declaration

    Swift

    public var attributes: [NSAttributedString.Key : Any]? { get set }
  • Specifies the attributes for strings.

  • Declaration

    Swift

    override public var bounds: CGRect { get set }
  • Declaration

    Swift

    override public func makeBounds(_ size: CGSize) -> CGRect
  • Declaration

    Swift

    override public func makeImage(_ renderer: some ScreenRenderer) -> CGImage?