Skip to content

1.0.14

Choose a tag to compare

@blsage blsage released this 10 Nov 22:20
· 4 commits to main since this release

Swift Chat 1.0.14 opens a thread on the message you choose.

New

  • chatInitialScrollTarget(id:anchor:onResult:) opens the transcript on a message instead of on the latest one: the first unread message, say, or the latest unread reply in an assistant thread (#6). The transcript stays hidden until that row is laid out and appears with it at the anchor, .top by default, so a reply several screens long is read from its first line; a messageAttachment { } card is a valid target. The id is read once, when the first messages are shown, so clearing unread state or a later id does not scroll an open thread. A message that is not loaded yet is waited for and seated when an update brings it, unless the reader has scrolled, tapped the field or sent by then. Once positioned, the message keeps its place while cached history is reconciled, older pages land, cards change height and new messages arrive, until the reader scrolls, taps the field or sends. onResult reports .positioned, .interrupted or .unreachable (the message is further back than the newest 350 or so the chat was given). Opt-in; a chat without it is unchanged.

  • ChatHeaderPlacement.topMargin gives the header room on a screen with nothing across its top, such as a folded phone whose status bar sits in a side column. Zero by default.

Fixed

  • Send applies the keyboard’s pending correction to the last word, the way Messages does, so a message no longer goes out with its final word misspelt when the keyboard was about to fix it. Send still never completes a half-typed word, and dictation is left alone.
  • The photo panel’s grid runs edge to edge in a window with a side safe area.

Everything else in 1.0.13 is unchanged.

Checksum: see Package.swift on the 1.0.14 tag.