Skip to content

iPad workspace lays out as the Mac does - #1137

Open
advenimus wants to merge 49 commits into
yetanotherbrowser:mainfrom
advenimus:advenimus/ipad-mac-layout-v2
Open

advenimus wants to merge 49 commits into
yetanotherbrowser:mainfrom
advenimus:advenimus/ipad-mac-layout-v2

Conversation

@advenimus

@advenimus advenimus commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What changes

The iPad workspace lays out like the Mac's. The iPhone does not change. Approval asked in #1105.

  • The sidebar runs the window's height. Its header has back, forward and reload, with the address plate under it.
  • Show Address Bar and Show Tabs in Sidebar work as on the Mac. With Show Tabs in Sidebar off, the Mac's top tab bar shows.
  • Spaces slide in the sidebar on Motion.space.
  • Pins fill the sidebar's width.
  • The downloads button shows progress and the last file, and a held link's download flies into it, as on the Mac.

Built on #1136. Review only the last three commits. The branch also carries the commits of #1129 and #1130, because this work rewrites their code; they drop out on rebase once those merge.

Why it happened

This follows the Mac, so there is no bug cause, apart from Greptile's #1109 findings, which are fixed:

How the layout follows the Mac:

  • Pins follow the Mac's SideBar.pinColumns.
  • The top band:
    • TabletBandPlan sizes each pane's band to the pane.
    • In a 320-point pane, +, All Tabs and downloads fold into the + menu, so the address always shows.
    • An empty space keeps its sidebar button and New Tab.
  • The downloads animation:
    • The flight lands when the button reports it is ready, with no polling.
    • Its sizes and motion are named values in Design/Metrics.swift and Design/Motion.swift, and its colors are in Ink.

Proof

  • Logic:
    • TabletWorkspaceTests: the band plan for every combination, including an empty space and a 320-point pane, pin columns and paging.
    • DownloadStoreTests: flights and arrivals.
  • UI: TabletWorkspaceUITests and TabletLayoutUITests.
  • Visible change: iPad Pro 13" simulator, light mode. Named states:
    • tablet.strip, tablet.band, tablet.hidden, tablet.empty, tablet.split.narrow;
    • downloads.tablet.ring, downloads.tablet.flight, downloads.tablet.waiting.
Before (main) After (this branch)
Plain launch Plain launch
(no such screen on main)
Tab strip Tab strip
(no such screen on main)
Band Band
(no such screen on main)
Hidden bar Hidden bar
(no such screen on main)
Empty window Empty window
Narrow split Narrow split
Downloads ring Downloads ring
(no such screen on main)
Download in flight Download in flight

Checked on

  • iPad Pro 13" and iPhone 18 Pro simulators, iOS 27.2. Yab Dev on an iPad Air and an iPhone 18 Pro.
  • Engine(s) tried: WebKit (the iOS app).

Checklist

  • The suites this touches pass on iPad and iPhone. Known failures that also fail on main:
    • TabletLayoutTests.testNativeTabletKeepsBothWebViewsAndDraftsWhileResizingAndRotating
    • one Duo layout test
    • the split-separating test in TabletChromeUITests
  • ./design-check --base origin/main and scripts/swift-parse-check --base origin/main are clean.
  • Anything that changes how Yab looks was approved in the issue first: waiting on iPad: lay out and behave like the Mac app #1105.

Metrics.Tablet sat in TabletLayoutPreferences.swift, beside the layout
choices. Every other size is in Design/Metrics.swift, and the fixes that
follow add the iPad's downloads sizes there. Nothing changes on screen.
The iPad's workspace never mounts ChromeLayer, where the phone keeps the
download question, the Now line and the Downloads page. A site's first
download asked a question nothing showed, so it never started.

- A downloads button in the sidebar's foot, and in the toolbar while the
  sidebar is away and there is a file: its popover asks a site's first
  file, then lists every file.
- Site Controls gains Downloaded Here and shows the Downloads page; its
  Downloads permission had the microphone's mark.
- Share sheets point under the toolbar on iPad, and topController skips a
  popover on its way out, so Share from Site Controls presents.
…on iPad

DownloadsUITests failed on iPad for four reasons, one in the app:

- The popover's panel named itself tablet.downloads around the question
  too, and the card and panel made one element: the card lost its name,
  download.ask, so VoiceOver and the tests could not find it, though it
  was on screen. The panel's name now goes on its list only.
- The test then looked for the phone's Now line and plate menu. On iPad
  it opens the downloads button's list and Site Controls instead; the
  button's VoiceOver value now says how many files its list holds, so a
  file's arrival can be waited on without opening the popover over the
  page, which would refuse the file (WebPool.canInteract).
- Download Linked File was counted among every button whose label begins
  with Download, the iPad's Downloads button too.
- Save to Photos waited up to nine seconds on a question iOS asks once
  per install, so on a simulator that had answered it the toast came and
  went unseen. It now waits for whichever comes first.

A tap on the page as a popover finishes going can be UIKit's: the allowed
site's second file is tapped once more if it isn't in after five seconds,
as hold() does for a lost press.
A site's first file opens the downloads popover with its question. Once
answered, the popover stayed up with the list, and the next tap on the
page only closed it: tap a link again after Cancel and nothing came,
and DownloadsUITests' second Report found no question. The phone's card
goes as it is answered.

A popover the question opened now closes with the answer; one the
person opened, or that was open already, stays. The test waits for the
popover's ground to go before it taps the page.
Site Controls › More gains the Mac's Print… and Save as PDF: the system's
print panel with WebKit's print formatter, and the page as one PDF to the
share sheet (Save to Files and the rest), named for the page.
A PDF or another document a tab opens (Word, Excel, PowerPoint, iWork,
rich text) becomes a file: kept in Downloads without asking and shown in
QuickLook, which saves and shares it; WebKit's inline view had no way to
keep it. A tab out of sight still shows it inline.

A tab whose first load became a file (a new window's PDF or attachment)
was cancelled because there was no page to restore; it now keeps the
file, and a page-opened window that was only that file closes back to
its opener.
WKWebView.url can still name the file for a moment after the file is
whole, then reads the source again with no navigation and no change to
history (measured: /file at completion, /second 800 ms later, about one
run in eighteen). The tests read it at that moment and failed now and
then; they now wait for it to come back.
WebPool.swift had grown past 2,400 lines with download work mixed into
navigation. The download path (origins, conversions, the response's file
branch, the source put back or released, adopt, Download Linked File,
Retry) now lives in WebPool+Downloads.swift, as the site work lives in
WebPool+Site.swift. The delegate callbacks stay in the conformance and
call into it. The stored state stays in the class, so the members the
extension uses lose their file-private access. Nothing changes for the
person using Yab.
The store kept the last file in as flash for the iPhone's Now line,
cleared by a timer, with a held copy while Yab was away, and each clear
had to remember both. Now there is one Arrival: the id, done or failed,
seen or not, and when it could be heard (nil while Yab is away). The Now
line shows it for its two seconds from then. Opening the file, or the
iPad's downloads list, marks it seen, which also ends the line, so
flashTaken is gone.
The app opened QuickLook when the source tab was in front or no longer
existed. A closed tab's id matched nothing, so a document from a closed
private tab opened over an ordinary page, and one from any closed tab
opened over an unrelated page. The pool reported the gone tab rather than
the tab the document was for.

The pool now names the tab the viewer belongs to: the tab itself, or the
opener when a window the page opened was only the file and closes back.
The app opens the viewer only when that tab is in front, the app is
active, and the file's privacy matches the page in front
(AppModel.showsDocument). Otherwise the file lands in Downloads with the
normal arrival.

A new window's PDF never reached Downloads at all: WebKit names the
opener's web view on a new window's first-load download, so the
download.webView check cancelled it. That check now also accepts the
opener's view for a fresh window the pool opened.
WebKit shows a bare picture, video, sound or text file as the page, and
until now the iPad and iPhone had no way to keep that file. The web pool
now remembers each tab's main-document type from the response it let
load, set when that load commits, and a page of one of those types (not
HTML, not the viewer's documents, not blob: or data:) offers Download in
iPad Site Controls > More and the iPhone page menu. It asks for the
committed address again through Download Linked File, so the file comes
through the tab's own store and cookies and history stays put.

A sound or video page also failed outright: WebKit ends its load with
"Plug-in handled load" (WebKitErrorDomain 204) when its player takes
over, and the pool took that for a failed navigation. It is now treated
as the page finishing, as it is.
PageDownloadTests gains a video page in the Download test (/clip.mp4),
and real-download tests for the viewer through the app over the pool:
the page in front opens its PDF, while a private tab's PDF behind a
public page and the PDF of a tab closed before it was whole only land in
Downloads. AppModel takes an optional download store so those tests keep
their files out of the app's own Downloads folder.
Site Controls offered Save as PDF and Print for any tab in front, but both
draw WebKit's view of the page and returned quietly when the tab had none
(a restored tab, a Mac's tab not loaded yet), so the row did nothing. Both
rows now ask pageCanBeDrawn, which is what the actions need, and are dimmed
without a page.
Phone/AGENTS.md asks every UI change to show its states before and
after. Print and a PDF in the system's viewer had none. print.panel and
print.viewer (in States+Print, joined to the page group) wait for the
page to draw before printing and open a real one-page PDF.
A PDF or other viewer document skipped the download question, so a site
the person had turned downloads off for still wrote files into Downloads.
Such a document now stays WebKit's own view of it, as it did before the
viewer. Private tabs remember no answer and are unchanged.
With no controller to present the share sheet on, the PDF written to a
temporary folder was never removed.
A document a private tab opened, and Save as PDF of a private page, are
shown once their work ends, which can be after the person left. The
viewer checked the tab and its privacy but not Private's lock: with Open
with Face ID, Yab left and come back while a PDF came opened it over the
lock. Save as PDF checked nothing: Private left or locked while the page
was drawn, its share sheet still came up over whatever was in front, with
the private page's PDF written to a temporary folder.

Both now ask one rule, presents(for:isPrivate:appActive:): the tab it was
made for is in front of an active Yab, of the same privacy, and a private
one only while privateLock.mayReveal. Save as PDF made when that fails is
dropped before anything is written.
…ps its extension

PageDownload.filename cuts a name to 120 characters and 255 bytes, the
file system's limit, from the end: through its extension. Save as PDF put
.pdf after the cut name, so a title of 85 Chinese characters made a name
of 259 bytes, the write failed and Save as PDF said it couldn't save. A
download with a long name lost its .pdf or .zip the same way.

The cut now comes before a short extension, which stays whole, and Save
as PDF passes its whole name, .pdf and all, through it.
A page's type came only from the response that loaded it. Going Back or
Forward to a picture or text page WebKit kept in its back-forward cache
brings no response, so the commit cleared the type and Download went from
the menus until the page was loaded again.

Each tab keeps the types of the file pages in its history by address,
only for addresses its history still holds, and a commit with no
response takes the one its address had.
Yab had no ⌘, of its own, so the key went to the system's Settings item,
which left Yab for the iOS Settings app. Settings… now sits in the app's
menu with ⌘, as on the Mac. The key stays Yab's while Settings, Join or a
chat is up: turned down there, it went to the system's item again. It
does nothing then.
- Keys and the iPad's menu bar: Zoom In, Zoom Out and Actual Size (⌘= ⌘- ⌘0)
  and Show Reader (⇧⌘R) in View, Stop Loading (⌘.) beside Reload, Copy
  Link (⇧⌘C) in Edit, Print… (⌘P) in File, once a page is drawn.
- A held link offers Open in Split View where a split can stand.
- A tab's hold offers Duplicate Tab.
Typing a command's name, or another word for it, offers it as a Yab row
with its keys: Zoom In, Show Reader, Print, Copy Link, New Private Tab,
Show Tabs in Sidebar and the rest of the keys' menu actions that have
something to do now. A whole name leads every other row, as AGENTS.md
asks of the Mac's field; a begun one stands under the first row.

mayUse splits into the covered check and offers(key), which the field
asks: the keys stay the field's while it is up, so a chosen command runs
once it has closed.
…rivate runs the commands it offers

Cause: the field's commands were built only from BrowserKey.all, so menu
actions without a key could not be found by name. Choosing a row in a
private field returned early for every command, though command rows were
offered there. And the Mac-tab menu's Duplicate Tab passed the Mac's tab
id to duplicate(), whose openHeldLink needs a local source tab, so it did
nothing.

FieldCommand now wraps the keys plus actions with no key, each with its
availability check. A private field offers only what Private can run (no
history, other tabs, Split View or ordinary New Tab, and page actions only
on a private page) and choose lets a command through only while the field
offers it. Duplicate Tab on a Mac row opens a new local copy in that row's
space.
Download, which a picture, sound or text page offers in the menus, is
also a command in the field, as every menu action is: over such a page,
and in Private only when that page is private.
… one

A command chosen in the field runs a turn later, once the field is gone.
run(_:) never checked Private there, so a command chosen in a private
field over a private page ran on whatever was in front by then: choosing
Duplicate Tab and then switching to an ordinary tab copied the ordinary
tab. The field now hands run(_:) the privacy it was chosen in, and
mayRun(_:privately:) puts the offer, Private's rule and the covers in one
check, which a test holds against every command Private offers.

FieldCommand's tokens are spelled out instead of reflected from case
names, and the dead .key case in run(_:) is gone.

Show Downloads joins the field (AGENTS.md: menu actions are field
commands): the iPad has its downloads button, the iPhone the plate's
Downloads page. It is offered where one of those is in reach and opens it.
The mira app keeps the simulator's real Downloads folder, so files an earlier run left there put the band's downloads button on screen and Show Downloads stayed offered. The test now starts from an empty list.
The field offered Save as PDF for any tab in front, but it draws WebKit's
view of the page and returned quietly when the tab had none (a restored
tab, a Mac's tab not loaded yet), so the row did nothing. It now asks
pageCanBeDrawn, as Site Controls and the menu bar's Print do.

The field tests opened a tab without loading it; they now load the page
they act on, as a real page in front is.
… clock

CONTRIBUTING rules out delay loops that hide a race. A command or Find
on Page chosen in the field waited a fixed fieldClose duration before
running. The field's close is not that one motion: it lands on the
plate, sinks with the sheet or (on iPad) just goes, each on its own
motion, so the fixed wait could fire before the landing ended and the
command was then refused as still covered. afterFieldCloses now watches
the end they share (the field no longer shown, nothing over the chrome)
and drops the action if the field opens again first.
afterFieldCloses registered its observation even when the field had
already finished closing and it ran the command at once. That leftover
watch fired on the next open of the field and, if the field was closing
again by the time its task ran, ran the old command a second time: in
the split test, a later Close Split found Separate Split View run again
first. It now watches only while the field is still closing. The new
test opens and closes the field after a command and fails without this.
The field offered Show Downloads whenever the sidebar's switch was on.
The workspace hides the sidebar when the window has no room for it
beside the page (a split in a narrow window), and then no downloads
button stood anywhere: the command ran and nothing opened.

The view's geometry is now one function on AppModel, and the command
reads the same sidebar width the layout draws, with the toolbar's button
as before.
Split View, Separate Split View, Close Split, Pin Tab, Unpin Tab, Keep
Tab, Don't Keep Tab and Rename Tab… now read as the Mac's menus do, so
the field's commands and the menus name each action the same way.
AGENTS.md asks every menu action to be found by name in the field. The
split's two rows, in the page menu, the iPad's workspace menu and the
band's split menu, were missing. They are now commands, offered under
the same rule as the menus (a split is up, the window is wide enough,
the page is ordinary), left out of Private, and they run the menus' own
actions. The menus call the action Split View, so its command keeps
that title, with open in split view as a name it is found by.

The Private test looked for a row titled open in split view, a title no
row has, so it could never fail; it now names the real titles.
A Mac tab's row offered Duplicate Tab, but holding one of this device's
own rows or pins (column, iPad sidebar, tab bar) did not, so the same
action was missing where it is most used. The first section of both
hold menus is now built in one place, TabHold.pageItems, which the
SwiftUI row menu and the pin's UIMenu both read, and it offers
Duplicate Tab for any tab with a page (not Mail). The copy opens in
front and the field steps out of its way, as a Mac row's copy does.
Duplicate Tab from a hold, and the other space page choices (a tab or
pin, a Mac tab opened or copied), always told the field to forget its
words and close. The same space pages stand in the iPad sidebar's
popover with the field closed, and the field stays in its mode while it
flies back to the plate, so a choice then threw away the words kept for
New Tab.

The field is open only when the choice came from it: on iPad the
sidebar and tab bar take no touches while the field covers them. So the
four choices make way only when the field is open.
The plate drew them from prototype art while the iPad, the page menu and
the Mac use MacGlyph's yabReload and yabStop.
A shared DeviceWord gives "iPad" or "iPhone" for the strings that name
this device: Settings, Sync and joining, chats, tasks, the virtual Mac,
extensions, the welcome and the field's Settings row. Each was written
for the iPhone and said iPhone on an iPad.
The Sync identity error, every reason an extension can't run, and the
name given to another device with no name of its own were written for
an iPhone and showed as-is on an iPad. They now use DeviceWord like the
rest of the app (and the device's model for another device). The
notification extension compiles SyncKeychain, so it takes DeviceWord
too. The speech recognition prompt, one Info.plist string for both
devices, says this device.
PhoneSync.swift and SyncKeychain.swift say the device's name through
DeviceWord, which the check's file list left out. DeviceWord imports
UIKit, which the macOS build has none of, so it says iPhone there; on
iOS it reads the idiom as before.

The check still fails for other files the list misses (MacState,
SendUpload, NowShelf), as it did before this change.
The tablet tree mounted ChromeLayer while All Tabs was up, so the phone's
plate, back button and the stack's circle faded in over the page as the
gallery closed (chromeOpacity returning to 1) and vanished only when it
was gone. The iPad's All Tabs lives in the sidebar: the phone chrome is no
longer mounted there, the circle is not drawn, and the other cards fade in
place rather than flying into a circle the iPad doesn't have.
…eside it closes it

On iPad Settings is a card, but its head started at the card's very top,
so the close button sat against the edge. It now stands 12 points in, as
from the sides. The dimmed ground beside the card took no taps; a tap
there now closes it, as a form sheet does.
The phone's chrome on iPad was behind both the download question missing
and the plate flashing after All Tabs. A test hosts the real
RootController at an iPad's size and checks no ChromeHostController is
mounted with All Tabs shut, opening, closing into a card and gone; the
same window at an iPhone's width mounts it, so the probe is shown to see
it. A UI test taps an All Tabs card and checks the workspace returns.
Every navigation was asked for with preferredContentMode .mobile, so an
iPad got Google's and other sites' phone pages. An iPad now leaves WebKit
its recommended mode (desktop at full width, mobile in a narrow window),
and a site's switch in Site Controls asks for its mobile site instead,
kept as Site.mobile. The iPhone keeps mobile unless a site asks desktop.
SiteSettings kept two flags, desktop and mobile, and every reader had to
know which one counted on which device. Two booleans also allow a state
nobody can pick (both set). The site now keeps one Version (automatic,
desktop, mobile), read in contentMode alone: automatic is WebKit's
recommended mode on an iPad and mobile on an iPhone. The device default
lives in SiteSettings, so WebPool no longer repeats it.

Settings saved with the old fields load as the new choice and are saved
again in the new shape.
On iPad, turning desktop on for a site forgot the choice, back to the
default, WebKit's recommended mode. That mode loads the mobile site in
a narrow pane, while the switch said Desktop.

An explicit desktop choice is now kept as desktop on every device. A
site never touched stays recommended, mobile stays mobile, and an
iPhone turned back to mobile still forgets the choice.
tablet.site.desktop and tablet.site.mobile open Site Controls with the
iPad's default and with the site asked for as a mobile one, for the
before and after pictures.
An iPad left to its own choice asks WebKit for .recommended: the desktop
site at full width, the mobile one in a narrow pane. The switch read that
choice as desktop On whatever the page was, so over a narrow pane's
mobile page its first tap asked for the mobile site, and it took a second
and a third to get the desktop one.

The pool keeps whether each page committed as the desktop site (WebKit's
effective mode) in its PageState, and with .recommended the switch reads
that. tablet.site.mobile loads the page again after its choice, so the
picture's page is the phone layout its switch says.
The iPad had a full-width toolbar row over everything, unlike the Mac,
where the sidebar runs the window's height and the page is a card.

- The sidebar's header holds its door, All Tabs, and Back, Forward and
  Reload; the address is a plate under it (the Mac's Show Address Bar
  off). Show Address Bar on moves the address and the page's doors into a
  band over the card; a split keeps a band on each page with its own
  Back, split menu and close.
- Show Tabs in Sidebar off (⇧⌘S, Settings, the door's hold) puts the tabs
  in the Mac's tab bar across the top. The sidebar away, the band holds
  the door, + and All Tabs.
- Spaces are pages side by side in the sidebar, sliding on Motion.space
  (the Mac's 0.2 s spring); a sideways swipe pages them as the Mac's two
  fingers do. The foot shows the space in front in color, the rest dimmed.
- The foot is the Mac's: downloads, the spaces, then +, which holds New
  Private Tab and Spaces and Chats; Settings is ⌘, in the app menu.
- Pins follow the Mac's SideBar.pinColumns: rows fill the width, stay even.
- The page keeps its card inset with the sidebar hidden, and a chat's
  column stands beside the workspace instead of over its controls.
- Rows have the Mac's 36-point ground and 10-point radius inside a
  44-point target, with pointer highlights.
- All Tabs grows its cards out of and back into the page card, and the
  sidebar and tab bar fade with the bar instead of popping back after.
- TabletBandPlan sizes a pane's band to the pane: equal ends only when
  they fit, else each its own width, and in a 320-point pane +, All Tabs
  and downloads fold into the + menu, so the address always shows. An
  empty space keeps a band with the sidebar door and New Tab.
- The iPad chrome's sizes are in Metrics.Tablet and its shades are
  Ink.tablet* colors.
…e last file

As the Mac's Hoard does: Download Linked File throws a disc from where
the link was held into the downloads button, and a file with no fresh
place only makes the button give. The button shows the progress ring
while a file runs and the last file's icon until the list or the file
opens, giving a little at each arrival. The page's own Download leaves a
link hold to its link.

The flight's lift, arc, shrink and fade points, the bump and the mark's
scale are named in Motion, its sizes, path and arrow in Metrics.Tablet,
its colors in Ink. Named states show the band's button with its ring and
with the last file's icon, and a flight held mid-arc.
The iPad's downloads button keeps the last file's icon until it is seen.
Seen was set only as the list opened, so a file that ended while the list
was already open became a new arrival no one had seen: the person watched
it finish, closed the list, and the button kept waiting on it.

The store knows which downloads lists are on screen, and of which
privacy, and a file that ends in one of its own kind arrives seen, with
nothing for the Now line to say. One that ends while Yab is away still
waits.
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach the iPad workspace and shared browser actions across iOS.

Fix iPad Print presentation before merging.

Findings

  1. P1 Print does not open ▶
  2. P2 Unseen download loses its badge ▶

Summary

Reworks the iPad workspace around a full-height sidebar, optional top tabs, and per-pane address bands.

  • The iPad workspace can use a full-height sidebar or a tab strip across the top.
  • The iPad Downloads button shows progress, new files, and held-link downloads.
  • People can download supported pages, open documents, and save pages as PDFs.
  • An iPad asks sites for their recommended version unless someone picks one.
  • The address field and keyboard menus can run more browser actions by name.
  • Messages and settings name the device as an iPad when they run on one.

Validation: source review and git diff --check completed. No iOS build, tests, or visual capture ran in this Linux environment.

Acknowledged by advenimus: visible-change approval is waiting on #1105. The author also identifies existing tablet resize/rotation, Duo-layout, and split-separation test failures, and attributes the download-after-Back fix to #1133. These claims were not treated as passing validation.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  Preferences[Layout choices] --> Layout[iPad workspace]
  Layout --> Sidebar[Sidebar with address plate]
  Layout --> Strip[Top tab bar]
  Layout --> Bands[Per-pane address bands]
  Downloads[Download store] --> Button[Visible downloads control]
  Button --> List[Downloads popover]
  Documents[Completed document] --> Gate[Check current tab and privacy]
  Gate --> Viewer[QuickLook]
Loading

Reviews (1) · Last reviewed commit: "fix: a file that ends in the open downlo..." · Reviewed by Greptile

let controller = UIPrintInteractionController.shared
controller.printInfo = info
controller.printFormatter = view.viewPrintFormatter()
controller.present(animated: !Motion.disabled)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Print does not open

printPage() calls UIPrintInteractionController.present(animated:), which is the iPhone presentation method. The new iPad Site Controls action and Print command therefore cannot show the print panel. On iPad, use present(from:in:animated:completionHandler:) or the bar-button variant with an anchor.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Comment on lines +306 to +308
func showsList(_ id: String, isPrivate: Bool?) {
openLists[id] = isPrivate
if isPrivate != nil { seen() }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Unseen download loses its badge

showsList() marks the latest arrival seen without checking whether the list shows that file's privacy. If a private file finishes, opening ordinary Downloads clears its unread state even though the list excludes it. The reverse also happens. Check the arrival's isPrivate against the list before calling seen().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant