View Issue Details

IDProjectCategoryView StatusLast Update
0012297Talerwallet (iOS App)public2026-11-22 14:46
Reporterbot-cg [agent]  
PrioritynormalSeverityminor 
Status new 
Summary0012297: Nightly, Actions sheet: with Increase Contrast on, the system Paste button is drawn as a blank square (no glyph, no round shape)
DescriptionIn the Taler_Nightly build on iOS 26 or later, the Actions sheet has the
system paste button (SwiftUI `PasteButton`) at its bottom left. With the
device setting "Increase Contrast" on (Settings > Accessibility > Display &
Text Size), that button is drawn as a plain filled square: no paste glyph and
no round shape. With the setting off it is a round button with the paste
glyph. See paste-button-increase-contrast.jpg (left: default, right:
Increase Contrast on; same wallet state, same sheet).

Nothing on the square says what it is. VoiceOver is not affected: the
element is still a button labelled "Paste".

Where
-----
TalerWallet1/Views/Actions/ActionsSheet.swift:146-169 (master 16f6f629):

    if #available(iOS 26.0, *) {
        if !pasteAutomatically {
    #if TALER_NIGHTLY
            PasteButton(supportedContentTypes: [.url]) { providers in ... }
            .labelStyle(.iconOnly)
            .tint(WalletColors().primaryAccent)
            .buttonBorderShape(.circle) // capsule

The other schemes use `TalerPasteButton` there and are not affected.

What was run
------------
iPhone 17 simulator, iOS 27.2, Taler_Nightly built from master 16f6f629
(the fuzzing branch's changes in this file are confined to the scanned-codes
rows above the button). One setting changed per run, wallet funded with
25 KUDOS, "Paste automatically" off, then Balances > Actions:

    default (light) round button with glyph
    dark appearance round button with glyph
    Preferred Appearance 3 round button with glyph
    Bold Text on round button with glyph
    Increase Contrast on blank square (3 of 3 runs)

The three runs with Increase Contrast: alone, alone again with a link on the
pasteboard, and once together with Bold Text and appearance 3.

How to reproduce by hand
------------------------
1. Settings app > Accessibility > Display & Text Size > Increase Contrast: on.
2. Taler Nightly with a balance, Settings > "Paste automatically" off.
3. Balances > Actions. Bottom left: a square where the paste button was.

With the UI fuzz harness: scenario paste-button-contrast (and
paste-button-light / -dark / -scheme3 / -bold for the comparison).

Not established
---------------
 * Why. The system draws this control itself; I have not tried which of the
   three modifiers it objects to, so there is no patch attached.
 * Whether the square still pastes. In these runs the pasteboard held no
   URL-typed item, so the button was disabled in every appearance (the faint
   look on the left is that disabled state).

Estimated severity: low -- nightly build only, and only with one accessibility
setting; but that setting is used by people who need controls to be easier to
recognise, and this one becomes unrecognisable.

Found while adding Increase Contrast, Bold Text and the fourth appearance
state to what the fuzzer varies per episode.

Filed by an agent (bot-cg) on behalf of Christian Grothoff, from an automated
UI exploration campaign.
TagsNo tags attached.
Attached Files
12297-paste-button-contrast-v16f6f629.diff (1,419 bytes)   
diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift b/TalerWallet1/Views/Actions/ActionsSheet.swift
index d91e7e16..cb10c591 100755
--- a/TalerWallet1/Views/Actions/ActionsSheet.swift
+++ b/TalerWallet1/Views/Actions/ActionsSheet.swift
@@ -75,6 +75,7 @@ struct ScannedURLs: View {
 struct ActionsSheet: View {
     let stack: CallStack
 
+    @Environment(\.colorSchemeContrast) private var colorSchemeContrast
     @EnvironmentObject private var controller: Controller
     @AppStorage("demoHints") var demoHints: Bool = true
     @AppStorage("pasteAutomatically") var pasteAutomatically: Bool = false
@@ -164,7 +165,11 @@ struct ActionsSheet: View {
                             }
                         }
                         .labelStyle(.iconOnly)
-                        .tint(WalletColors().primaryAccent)
+                        // The system draws this control itself, and draws nothing but a blank
+                        // square when its glyph would not have enough contrast on the tint.
+                        // With "Increase Contrast" on, the Taler blue does not pass; black does.
+                        .tint(colorSchemeContrast == .increased ? Color.black
+                                                                : WalletColors().primaryAccent)
                         .buttonBorderShape(.circle) // capsule
                         .accessibility(sortPriority: 1)
 #else
12297-patched-states.jpg (28,575 bytes)   
12297-patched-states.jpg (28,575 bytes)   

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

bot-cg [agent]

2026-11-22 14:40

updater   ~0030791

Related, found the same day: 0012299 -- Paste is disabled for the link the wallet's own Copy/Share produce. The patch there also changes this button's content types to [.url, .plainText]; it does not change its appearance, so the blank square under Increase Contrast described here is independent of it.

bot-cg [agent]

2026-11-22 14:46

updater   ~0030792

Cause found, patch attached (12297-paste-button-contrast-v16f6f629.diff, against master 16f6f629, one file, +6 -1).

The system draws this control itself and draws a blank square when its glyph would not have enough contrast on the tint. Tried on the nightly build, iOS 27.2 simulator, one change at a time:

    modifiers light Increase Contrast
    as in master (.tint(primaryAccent)) drawn blank square
    without .tint blank square blank square
    without .buttonBorderShape(.circle) drawn blank square
    .tint(Color.black) drawn drawn (dark: drawn)

So it is the tint: the Taler blue passes the system's check normally and fails it with Increase Contrast on; the default tint fails it always; black passes.

The patch reads colorSchemeContrast in ActionsSheet and uses black as the tint when it is .increased, the Taler blue otherwise. With it (12297-patched-states.jpg): light, dark and Increase Contrast all show the round button with its glyph, and with a copied link on the pasteboard the button pastes under Increase Contrast (scenario paste-button-works-contrast: all steps green).

The test build also carried the patch of 0012299, without which the button is disabled for a link copied in the wallet; the two patches touch different lines of ActionsSheet.swift and each applies to master on its own.

One run per cell.

Issue History

Date ModifiedUsernameFieldChange
2026-11-22 07:45bot-cgNew Issue
2026-11-22 07:45bot-cgImplementer => MarcS
2026-11-22 07:45bot-cgReviewer => vlada.svirsh
2026-11-22 07:45bot-cgRelease signed by => MarcS
2026-11-22 07:45bot-cgDeployed by => MarcS
2026-11-22 07:45bot-cgVerifier => vlada.svirsh
2026-11-22 07:45bot-cgCommunicator => CM_7
2026-11-22 07:45bot-cgFile Added: paste-button-increase-contrast.jpg
2026-11-22 14:40bot-cgNote Added: 0030791
2026-11-22 14:46bot-cgFile Added: 12297-paste-button-contrast-v16f6f629.diff
2026-11-22 14:46bot-cgFile Added: 12297-patched-states.jpg
2026-11-22 14:46bot-cgNote Added: 0030792