All Questions
Tagged with accessibility swift
311
questions
0
votes
0
answers
16
views
How to tap a button in a UITest that is in and out of a swiftui accessibilityRepresentation?
If the View looks like this:
struct Screen: View {
var body: some View {
VStack {
...
NavigationLink {
LoginScreen()
} label: {
...
0
votes
1
answer
76
views
Disable Button shape accessibility from programming
Is there any way to disable button shape accessibility from app code?
Because it shows greyish backgorund all over the app which kill UI part.
The tabs & all buttons show grey background all the ...
0
votes
0
answers
42
views
Links in WKWebview not showing numbers when "Show Numbers" command is activated with Voice Control
I am using WKWebview and loading HTML content with couple of anchor tags to open another view in app itself when tap on link. However, I do not see any numbers for links when I say "Show Numbers&...
1
vote
2
answers
151
views
How to make Top View Controller receive focus with `tab` or `arrow` keys when using Full Keyboard Access
Question: Top View Controller (CardVC) not focusable with Full Keyboard Access
Issues:
When CardVC is displayed, and if the Full Keyboard Access is enabled, the navigation by pressing Tab or Arrow ...
1
vote
0
answers
33
views
UIAccessibility post announcement not always read if fired by button
I have a simple app to announce a text when tapping a button. Here is the code (it's in SwiftUI but the same behavior arises using UIKit)
struct ContentView: View {
var body: some View {
...
0
votes
0
answers
37
views
SwiftUI AccessibilityFocusState not working in Lists
I have a view shown as a crouton (from bottom view) when tapping a button. I want to move accessibility focus to this view when shown but using AccessibilityFocusState only works if the button is NOT ...
1
vote
0
answers
53
views
How to correctly get text cursor location from any application with Mac Accessibility APIs?
I'm developing a helper application that provides autocomplete features for any application by using macOS Accessibility APIs. I can get the right location from Xcode, VS Code and other applications ...
0
votes
0
answers
19
views
How to specify button badge information for accessibility in iOS
I have a custom button related to user notifications in my app which can have a numberic badge. If there is no badge, I want the VoiceOver to speak "Notifications. Button" and if it has a ...
0
votes
0
answers
48
views
voice over is enabled(UIaccesibility.isVoiceOverRunning) on parent A(nav controller) and On child view(UIactivityViewcontroller)voice over is disabled
I'm trying to achieving accessibility on activityviewcontroller. I'm presenting navigation controller over root view and later presenting activityviewcontroller over navigation controller.I found ...
0
votes
0
answers
64
views
SwiftUI bug? Elements invisible in Voice Over mode
I'm facing issues with the visibility of the elements inside ZStack in VoiceOver mode.
I'm building a View where I got navigation tabs inside ScrollView (green tabs on picture), and on top of that I ...
0
votes
0
answers
40
views
Exploring Apple Accessibility Audit in Xcode
I'm exploring Apple Accessibility Audit in Xcode and can't figure out how an audit like elementDetection (XCUIAccessibilityAuditTypeElementDetection) works at all.
My goal is to build the elements so ...
0
votes
1
answer
55
views
accessibilityElementDidBecomeFocused only gets called with VoiceOver enabled
Background
I have a UICollectionViewCell, where I override accessibilityElementDidBecomeFocused method.
I also override canBecomeFocused to always return true.
The App allows Accessibility->Full ...
0
votes
1
answer
88
views
How to disable Direct Touch Area on MyApp
I need to disable Direct Touch Area in MyApp (a Unity App) using a Native framework.
I usually used
UIAccessibilityTraits.allowsDirectInteraction = UIAccessibilityTraits.none
or
UIAccessibilityTraits....
1
vote
1
answer
96
views
How can access inner elements of NavigationLink in accessibility in SwiftUI
I have enabled accessibility for automation testing. I have added accessibility label for all element but accessible of elements inside the NavigationLink is false.
var body: some View {
...
0
votes
0
answers
30
views
contentView.isAccessibilityElement = true is not working on UITableviewCell
have one UItableviewCell.
not able to perform cell selction with voice over on if I set isaccessibilityElement to true
contentView.isAccessibilityElement = true
If I remove this cell selection works.
...
1
vote
1
answer
96
views
How can I access text box elements in a specific third-party application window?
My requirement is to launch a third-party application from my application and auto-fill the username into a specified text box. Currently, I am able to launch the application and have tried using the ...
0
votes
0
answers
13
views
How to set accessibilityIdentifier for a title of a viewcontroller in UIKit [duplicate]
The problem is that I can't set accessibilityIdentifier for a title of a viewcontroller that is inside of a NavigationController. I need to set it for testing purposes for Appium.
The simplest ...
0
votes
0
answers
47
views
Heading Rotor not reading invisible headings
Am using CollectionView to display content and inside CollectionViewCell I configured Label property accessibilityTraits as header.
When am trying to read headings through Rotor after enabling ...
1
vote
1
answer
2k
views
SwiftUI - Static method 'buildExpression' requires that 'ValueWidget' conform to 'AccessibilityRotorContent'
I am new to swift und swiftUI and started playing around with it. I am getting the following error:
Static method 'buildExpression' requires that 'ValueWidget' conform to 'AccessibilityRotorContent'.
...
2
votes
1
answer
194
views
AccessibilityIdentifier for group of Texts at the same time with identifiers to each of Text
For example code:
HStack {
Text("Hello")
.accessibilityIdentifier("first_word")
Text(" ")
Text("World!")
.accessibilityIdentifier(&...
0
votes
2
answers
158
views
Using custom ButtonStyle broke accessibilityShowButtonShapes overlay
I use custom ButtonStyle to change colour of button in pressed state
Button(action: action) {
bodyView
}
.buttonStyle(ListCellButtonStyle())
private struct ListCellButtonStyle: ButtonStyle {
...
1
vote
2
answers
147
views
Remove button readout from NavigationLink with VoiceOver on
I follow this guide to create navigation programmatically in SwiftUI.
Now the issue is that when VoiceOver is turned on, VoiceOver will read out the NavigationLink as button although it's completely ...
0
votes
0
answers
28
views
Voiceover reads the UI Label again after changing volume
I have a UI Label, which VoiceOver is focused on. It reads it. Then I change volume up or down, and then it reads the value of UI Label two more times. Any idea how to fix this? Or is this expected ...
0
votes
2
answers
176
views
how do I dismiss keyboard when a UIView receives accessibilityElementDidLoseFocus
I have a search view controller with the search bar on top. When searching, the keyboard shows up and stay up even when accessibilityElementDidLoseFocus is called on the search bar.
I would like to ...
0
votes
1
answer
256
views
How group a UITableView for VoiceOver?
I have a UITableView with infinite cells, these are loaded as you scroll down. And I also have a floating button at the bottom. VoiceOver reads the cells one by one, the problem is that as new cells ...
1
vote
0
answers
139
views
iOS Accessibility: How to Increase the Touch Target size for AttributedString in a Label or TextView
How to increase the touch receive area of an attributed string?
Given that a TextView with "View privacy settings and legal disclaimer". Where "privacy settings" and "legal ...
0
votes
0
answers
97
views
Custom UITableviewcell not focusing for voice over left-right swipe
Voice over left-right swipe is not working after a particular cell when the next cell is either not visible in screen or partially visible in screen in UITableView.it gets stuck on the last label of ...
1
vote
2
answers
706
views
Trying to add my app to System Settings -> Privacy and Security -> Accessibility list is the reason of app crash
I have some app
This app must to have accessibility access (to use global hotkeys)
There is no problem to open Accessibility preferences window (System Settings -> Privacy and Security -> ...
2
votes
1
answer
1k
views
SwiftUI: Variable Dynamic Font
I'm in the process of upgrading my app from UIKit to SwiftUI and I've run into the issue of how to create a SwiftUI Text view which reacts to dynamic (accessible) font size and uses a variable font ...
0
votes
1
answer
142
views
accessibilityIgnoresInvertColors is not working for WKWebView in a SwiftUI view
In my SwiftUI view, I'm trying to apply the accessibilityIgnoresInvertColors property to content loaded inside a WKWebView. But this doesn't seem to work. Turning on smart invert in the settings is ...