What's happening here?

This example introduces UIText elements alongside images in constraint-based layouts. A character, logotype, download button, and text elements are positioned using aspect and proportion constraints, demonstrating how to combine different UI element types.

new UIText(layer,
  // Can be a string, span, or array of spans
  "Hello!",
  {
    // Common style - default style
    commonStyle: {
      color: "#ffffff",
      fontFamily: "Chewy",
      fontSize: 256,

      enableShadow: true,
      shadowOffsetX: 8,
      shadowOffsetY: 8,
      shadowBlur: 4,
      shadowColor: "#050505",

      enableStroke: true,
      strokeColor: "#101010",
      strokeThickness: 12,
    },
  }
);
💡 Text Modes: UIText has two modes: one scales text size along with element dimensions, the other wraps text to the next line when it reaches boundaries.