Skip to content

0.27.0

Latest

Choose a tag to compare

@adam-zethraeus adam-zethraeus released this 04 Dec 03:28
72e35cd

Added

  • TileStyle.Pattern(cells:) accepts a grid of CellContent values. Each
    cell can override the tile's foreground and background colors. Canvas
    drawings can use the same values with CanvasContext.setCell(_:at:).
    CellContent is an alias for the existing CanvasCell struct.
  • Touch hosts can use the optional dragRegions field on wire frames to
    identify visible cells that capture a drag (STUI-1645).
  • RunLoopTestHarness accepts an explicit motion mode through its Testing SPI.
    Tests can exercise reduced motion on the virtual frame clock.

Changed

  • SwiftTUIRuntime and SwiftTUIAnimatedImage build without Foundation
    (STUI-1684).
  • The framework's DocC reference is generated from Swift declarations and
    their documentation comments (STUI-1635).
  • Re-vendor the WebHost browser bundle at swift-tui-web 0.22.2. The previous
    bundle came from 0.21.0. The bundled browser client now preserves input
    method editor (IME) confirmation in native editors (STUI-1537). The
    swifttui.companion/1 profile is unchanged.

Fixed

  • Sheets and full-screen covers keep their local state when switching away
    from a tab and back. Retained actions read the current environment when
    invoked, and departed views release their lifecycle registrations
    (STUI-1328, STUI-880, STUI-798).
  • Scrolling and resizing a list respects hidden row separators. Selective
    updates preserve row decorations and preferences, and windowed collections
    diagnose duplicate IDs even across windows (STUI-1617, STUI-1636,
    STUI-1674).
  • Terminal colors retain status hues on 16-color terminals. With
    cursorFollowsFocus enabled, the terminal presents the hardware cursor
    at the focused element in the same frame as the content (STUI-1638,
    STUI-1689).
  • Primary and attached terminal sessions restore terminal modes on process
    exit and signals. Cursor, clipboard, and hover updates time out if terminal
    output stalls (STUI-1660, STUI-1661, STUI-1662, STUI-1663, STUI-1666).
  • Apps with default command-line options handle shell completion requests,
    and arguments consumed by an app stay out of runner dispatch (STUI-1664,
    STUI-1665).
  • Asynchronous rendering picks up toolbar changes during selective updates.
    Semantic snapshots include a route for every mounted navigation stack
    (STUI-1670, STUI-1671).
  • Writing @State while evaluating a view records a diagnostic. Later
    reads see the new value without scheduling another frame (STUI-1673).
  • When an AnimatableArray changes length, the whole animatable value
    immediately takes its target value. Unchanged controls can reuse their
    bodies while a sibling animates (STUI-1637, STUI-1639).
  • Built-in transitions carry their presented opacity, offset, and scale through
    interruptions. Springs preserve velocity when reversing (STUI-1549).
  • A custom transition follows the active branch of a conditional, including
    one wrapped in a lone Group (STUI-1583). A plain child write during a
    parent's animation uses the child's current transaction (STUI-1564).
  • Animation, scroll momentum, and built-in gesture timers own independent
    deadlines. Input between animation ticks preserves the cadence, and a
    completed transition releases its wake as soon as its completion criteria
    permit (STUI-837, STUI-1560, STUI-1586).
  • A replacement frame carries forward a dropped frame's invalidations
    (STUI-737). Exit overlays preserve the lifecycle of visible lazy rows
    alongside them (STUI-762).
  • A view whose body is an if/else plays the insertion and removal
    transitions of its branches when a write inside withAnimation switches
    them, as the same conditional inside a stack does. This also holds for a
    body that is a lone Group around the conditional, and for an overlay or
    background whose branches both carry .transition(_:) (STUI-1350).
  • A Duration longer than Int64.max seconds no longer traps the animation
    APIs that take one. Animation curves, springs, keyframes, delay(_:),
    logicallyComplete(after:), timeline schedules, and
    Duration.totalSeconds treat it as 2^62 seconds (STUI-1360).

Full changelog