Let Readers Select Text Without Making It Editable
Offer native word selection in a read-only SwiftUI message on iOS 27, keep whole-message copying explicit, and test what reaches the clipboard.
Read moreShowing 1–12 of 200 posts
Offer native word selection in a read-only SwiftUI message on iOS 27, keep whole-message copying explicit, and test what reaches the clipboard.
Read moreFlow a text report across readable PDF pages with Core Text, advance by the range that actually fits, and verify the exported document keeps its final paragraph.
Read moreModern Foundation can decode optional ISO 8601 fractions, but JSONEncoder’s .iso8601 strategy can still discard them. Build and test both sides of a millisecond-resolution API contract.
Read moreVerify that a shared assertion helper really fails through both test frameworks, choose the right interoperability mode, and preserve the caller's source location.
Read morePreserve Keychain read errors during session restoration, retry an inconclusive lookup in the foreground, and avoid deleting a saved credential.
Read moreKeep a deadline while running, freeze the remaining duration when paused, and let SwiftUI update the display without making every tick an app-state mutation.
Read moreMeasure the actual labels to choose an equal-width action row or a vertical stack. Keep long labels readable, respect Dynamic Type, and preserve the same button views.
Read moreCombine natural name sorting, folders first, and persistent identity so a refreshed document list keeps a predictable order—even when users reverse the names.
Read moreMove bundled JSON into a source Swift package, expose a small typed API, and prove that tests and consuming apps load the package's file instead of their own.
Read moreReject redirects for API endpoints that should answer directly, preserve the original HTTP status, and test that the redirected destination receives no request.
Read morePresent a SwiftUI alert from one optional value, capture the item the reader saw, and reject deletion if that item's revision changed before confirmation.
Read moreUse iOS 27's ID-based reordering to move visible items within their original slots, preserve hidden rows, and reject stale moves before touching your model.
Read more