Find in Article was a custom search bar plus JavaScript that walked the
page text and drew its own highlights. It predates WKWebView's
UIFindInteraction (iOS 16), and its state lived in the page, so on iPad,
where the article view stays on screen and reuses its web view for the
next article, the bar kept the previous article's text and result count
and Next / Previous did nothing.
Turn on isFindInteractionEnabled and drive the web view's find
interaction instead. ArticleViewController handles find:, findNext: and
findPrevious:, so the system Find menu (Find, Find Next, Find Previous)
works with a hardware keyboard, and the old ⌘F key command goes away.
It also passes Use Selection for Find to the web view, which otherwise
only gets it while it's first responder, so the menu item works when the
view controller has focus. The find bar is dismissed when the article
changes or the article view goes away. The share sheet's Find in Article item still works.
Verified on iPad Pro 11-inch (iOS 27.0) and iPhone 18 Pro (iOS 27.2)
simulators: ⌘F, ⌘G, switching articles from the timeline and with the
next-article button, and the share sheet item.
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.
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.
Remove the split view collapse check from the full-screen availability
condition and drop the trait collection transition override that forced
bars to appear on rotation. Fixes#5145.