Commit Graph
2724 Commits
Author SHA1 Message Date
Brent Simmons 877240ae40 Draw separators in timeline on Mac using standard method. 2026-11-06 08:25:07 -08:00
Brent Simmons cd6dd9ab29 Show background color before image loads (when the view is a placeholder). Give a corner radius to large thumbnails. 2026-11-05 20:34:32 -08:00
Brent Simmons 1dded15356 Remove some unused assets. 2026-11-05 20:32:10 -08:00
Brent Simmons 6943a6f403 Move function to private extension. Simplify comment. 2026-11-05 12:14:40 -08:00
Brent Simmons 60dd02cbcc Restore current-context presentation for the full-screen image viewer. Resize image after scroll view’s layout to reduce jitter during rotation. 2026-11-05 10:49:54 -08:00
Brent Simmons d85eb9d27a Remove inverted trailing title constraint from the image viewer. 2026-11-04 11:54:40 -08:00
Brent Simmons a2a966f28d Update image view title margins before, instead of after, layout. 2026-11-04 11:52:23 -08:00
Brent Simmons 1e16ba125e Set image viewer title margins directly. 2026-11-04 11:51:34 -08:00
Brent Simmons f73735e7fc Clarify comments on iOS 27 compiler checks. 2026-11-04 11:49:08 -08:00
Brent Simmons 3af284bc8d Create and use addCapsule helper. Use constants instead of magic numbers. 2026-11-04 11:47:46 -08:00
Brent Simmons c12353d02d Remove unused clear background view. 2026-11-04 11:43:37 -08:00
Brent Simmons f707ab64e0 Update search bar position in one place. 2026-11-04 11:42:53 -08:00
Brent Simmons b894a8140c Fix find bar hinge margins in right-to-left layouts. 2026-11-04 11:02:10 -08:00
Brent Simmons c2003b65c9 Make guard formatting conform to house style. Simplify viewWillTransition comment. 2026-11-04 10:57:16 -08:00
Brent Simmons 00590c8bb4 Record scroll position after restoring anchor, so rotation doesn’t leave stale windowScrollY. 2026-11-04 10:52:39 -08:00
Brent Simmons 0bd3841c48 Move scroll anchor JavaScript script from WebViewController to main.js. 2026-11-04 10:42:17 -08:00
Brent Simmons 169139101d Merge pull request #5507 from dave-atx/fix-article-scroll-position-on-rotation
Keep the reader's place in an article across a rotation
2026-11-04 09:57:37 -08:00
Brent Simmons ec90003718 Merge pull request #5533 from dave-atx/fix-iphone-duo-layout
Drop the empty navigation bar over articles when the bars move to a side
2026-11-04 09:54:44 -08:00
Brent Simmons 04174247d6 Merge pull request #5511 from stuartbreckenridge/fix/article-image-selection-on-duo
Fix full-screen image layout and resizing on iOS
2026-11-04 09:45:48 -08:00
Brent Simmons ac1e1a8571 Merge pull request #5510 from stuartbreckenridge/fix/modernise-find-in-article
🔎 Refresh article search controls
2026-11-04 09:41:57 -08:00
Brent Simmons 522a2c7112 Merge pull request #5506 from dave-atx/fix-article-edge-swipe
Let a left-edge swipe reveal the timeline over an article
2026-11-04 09:34:15 -08:00
Brent Simmons 0cd3486f73 Use photo instead of app icon for thumbnail preview on iOS. 2026-11-03 16:22:17 -08:00
Brent Simmons 0a0ac86153 Rebuild notification inspector only for own account’s feed icons. 2026-11-03 15:43:53 -08:00
Brent Simmons 7035083833 Use shared NetNewsWire feed icon. 2026-11-03 15:43:23 -08:00
Brent Simmons c300d573f3 Skip icon and avatar lookups in timelines that don't show icons. 2026-11-03 14:58:56 -08:00
Brent Simmons e166dbdd9c Reload iOS timeline cells for icon change only when a visible cell might show that icon. 2026-11-03 14:20:48 -08:00
Dave Marquard fc2a39f5ff Keep the reader's place in an article across a rotation
The recorded scroll position is window.scrollY, an absolute pixel offset
baked into the rendered page. Rotating reflows the article at a new width,
so that offset points somewhere else. The web view also scrolls on its own
during the transition, overwriting the stored position before anything can
restore it.

Record the element at the top of the viewport along with its offset, stop
recording while the view changes size, and scroll back to that element once
the transition ends.

Verified on an iPhone Duo. The same loss happens on iPad, which is where I
first noticed it.

Written with help from Claude Code.
2026-11-03 14:02:00 -08:00
Dave Marquard 4a035abd92 Drop the empty navigation bar over articles when the bars move to a side
The article puts an empty view in the navigation bar's title so a tap on
the bar can enter full screen. With the iOS 27.1 vertical bar (the iPhone
Duo's outer screen, and the inner one in landscape) the bar buttons move
to a side edge, and that title view is all that's left in the top bar. It
keeps an empty bar across the top of the article.

Leave the title view out while verticalBarEdge is set, and update it when
the trait changes. Tapping the bar to enter full screen isn't available
in that layout, which only matters with the full-screen setting on.

The new API is behind #if compiler(>=6.4.2), the Swift in Xcode 27.2, so
Xcodes whose SDKs don't have it still build.

Verified in the iOS 27.2 iPhone Duo simulator: the outer screen in both
orientations and the inner one in landscape. Inner portrait keeps its
horizontal bar and the tap zone.

Fixes #5530.

Written with help from Claude Code.
2026-11-03 14:02:00 -08:00
Dave Marquard 84d894d4d6 Let a left-edge swipe reveal the timeline over an article
The article is a UIPageViewController, and a no-op pan recognizer on its
internal scroll view refuses simultaneous recognition within 40pt of the
left edge, so swiping from there doesn't page back and navigate back at
the same time. It refused every other recognizer there too, including the
split view's reveal gesture. The swipe did nothing over the article while
it still worked alongside the toolbars, where the page view controller
isn't under the touch.

Narrow the refusal to the page view controller's own pan. Paging is still
held back near the edge, and everything else gets the touch.

Found on an unfolded iPhone Duo, where the article fills a 669pt-wide
expanded split view and the timeline is otherwise only reachable from the
sidebar button.

Written with help from Claude Code.
2026-11-03 14:02:00 -08:00
Brent Simmons 9bc39f5172 Split ThumbnailDownloader out from ArticleThumbnailFinder. 2026-11-03 13:40:27 -08:00
Brent Simmons dc27b508b3 Make IconImageCache the source of icon notifications. 2026-11-03 11:53:31 -08:00
Brent Simmons 966641c723 Remove SingleFaviconDownloader. 2026-11-03 11:36:06 -08:00
Brent Simmons 16e54269d7 Load icons at start of background refresh, so widgets and notifications are more likely to get their proper icons. 2026-11-03 09:53:28 -08:00
Brent Simmons 9b35e47f68 Request a feed icon when it isn’t in memory. 2026-11-03 09:50:36 -08:00
Brent Simmons ab921e0885 Reload article view icon only if it’s for the articles feed icon, favicon, or authors. 2026-11-02 16:54:53 -08:00
Brent Simmons e485ea07d9 Finish every article icon scheme task and don’t call a stopped one. 2026-11-02 16:09:39 -08:00
Brent Simmons 2915cb44e7 Parse HTML thumbnails off the main thread at fetch time. Remove batching. 2026-11-01 21:27:18 -08:00
Brent Simmons a204df0d22 Remove articleThumbnailURLs. Cache thumbnail URLs in memory. Parsing is super-fast. 2026-11-01 20:55:18 -08:00
Brent Simmons 24ab32aa80 Parse HTML thumbnails for first 1,000 articles before rows load, so we have thumbnail state for layout. 2026-11-01 20:45:26 -08:00
Brent Simmons 35ae2068c1 Remove prefetching. 2026-11-01 11:30:10 -08:00
Brent Simmons ce90c7390f Remove some unused code. 2026-10-31 15:45:41 -07:00
Brent Simmons 7766bb197a Edit comment. 2026-10-31 15:42:18 -07:00
Brent Simmons c2fe18475a Reload all timeline cells on iOS when feed icons setting changes, so row heights get recalculated. 2026-10-31 12:04:40 -07:00
Brent Simmons f41d3d2ac7 Set only the image on the cell so each download doesn’t rebuild the whole cell. 2026-10-31 11:58:29 -07:00
Brent Simmons 1302f57d3e Use findThumbnailURLs. 2026-10-31 11:05:35 -07:00
Brent Simmons d404b3b8da Update cells about to be displayed, so thumbnail that arrives after the cell was prepared doesn’t leave the row gray. 2026-10-31 10:43:14 -07:00
Brent Simmons 1759eebd55 Remove now-unused three-day image cache flush. 2026-10-30 21:36:01 -07:00
Brent Simmons 8119738499 Use UICollectionViewDataSourcePrefetching to prefetch iOS timeline thumbnails. 2026-10-30 18:05:16 -07:00
Brent Simmons 3da931b856 Find HTML images before updating rows when a timeline thumbnail fails. 2026-10-30 17:52:02 -07:00
Brent Simmons f19b70fda5 Update visible cells directly when a thumbnail arrives. 2026-10-30 17:26:17 -07:00