Commit Graph
370 Commits
Author SHA1 Message Date
Brent Simmons 38122dd028 Move next-unread button to right below next/prev buttons on Duo when buttons are in vertical mode. Easier to hit with the thumb. 2026-11-19 09:30:10 -08:00
Brent Simmons 11251847b5 Show Reader View button in vertical row (instead of side row) on Duo. 2026-11-19 09:20:13 -08:00
Brent Simmons 970c28e7c1 Refill web view pool synchronously so pending dequeue doesn’t hit an empty queue. 2026-11-16 08:08:00 -08:00
Brent Simmons d404cf18a3 Log thumbnail downloading always (not just on error). Include feed name in log entries. 2026-11-15 20:59:37 -08:00
Brent Simmons e85d49b352 Fixed bug with fullscreen articles on iOS where going back to timeline would make the app would forget that you were in fullscreen mode. 2026-11-15 20:43:05 -08:00
Brent Simmons 90aaf2e632 Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire 2026-11-12 13:48:46 -08:00
Brent Simmons 859bbe5476 Add iOS setting for enabling swipe to next/previous articles. Off for new users, but true by default for existing users. 2026-11-12 13:48:34 -08:00
Brent Simmons 24a5bd9642 Make arrow key navigation work from timeline to article view and back. Make up and down arrow keys scroll in article view. Fixes #5538. 2026-11-12 10:37:19 -08:00
Brent Simmons 518ef1cf5d Make grayscaleIcon setting in theme Info.plist work. 2026-11-10 18:31:42 -08:00
Brent Simmons b528ad3d5f Update visible icons when grayscale icons setting changes. 2026-11-09 09:14:20 -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
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 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 60640b235e Use timeline copy in iOS image viewer only if correctly signed. 2026-10-29 12:30:00 -07:00
Brent Simmons f5b5f28ff2 Add routesThumbnailImages so that only webviews get the local image cache URL scheme. 2026-10-28 10:09:49 -07:00
Brent Simmons 640878163e Open image in image viewer from local copy. 2026-10-27 14:29:05 -07:00
Stuart Breckenridge 2cbf2beda7 Update compiler checks 2026-10-25 13:35:13 +08:00
Stuart Breckenridge f0a59bb194 Fix for CI only 2026-10-25 13:28:33 +08:00
Stuart Breckenridge e1a25ffa01 🖼️ Fix full-screen image layout and resizing on iOS
Lay out the destination before animating, recenter images after resizing, and calculate title margins without accumulating offsets.

Give images the full screen, now that they have learnt to stay in the middle.
2026-10-25 10:41:37 +08:00
Stuart Breckenridge 3cfee08acf 🔎 Refresh article search controls
Add translucent search controls, reserved-region margins and keyboard-aware spacing.
2026-10-25 10:38:15 +08:00
Brent Simmons 2ce850441b Make AppDefaults an enum instead of singleton class. 2026-10-22 13:46:32 -07:00
Brent Simmons 59c0afe4a9 Respect the user preference for JavaScript so that YouTube embedded videos and similar appear in the preview when they should. 2026-10-22 09:45:12 -07:00
Brent Simmons c5b524b5ea Create and use a new ArticlePreviewViewController for contextual menu preview since it doesn’t have the side effects of WebViewController. 2026-10-21 21:57:51 -07:00
Brent Simmons bdc0c02553 Merge branch 'main' into main 2026-10-21 21:18:37 -07:00
Brent Simmons c70a7ab4a7 Make iOS 18 the minimum target. 2026-10-21 19:05:11 -07:00
Stuart Breckenridge ea9adedb50 Merge branch 'experiments/posh-previews' 2026-10-14 20:49:50 +08:00
Brent Simmons 3756e7fc75 Fix crashing bug (concurrency) observing UserDefaults did change notifications. 2026-09-18 17:23:50 -07:00