NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

SwiftUI tabview problem

Forums > SwiftUI

When users of my app enable "Full Keyboard Access" in their accessibility settings they aren't able to switch tabs in the SwiftUI tabview of my app anymore. How can I prevent this from happening? Can I detect if a user has activated this option somehow?

   

Has somebody an idea? It seems I am not the only one with the problem, see here.

   

Probably you could look at the NotificationCenter and addObserver for the items that are related to accessibility or the keyboard, such as UIResponder.accessibilityValue(), or UIResponder.keyboardWillShowNotification, or whatever element is suitable for your app.

   

Hacking with Swift is sponsored by Instabug

SPONSORED Catch bugs as soon as they happen and know exactly why a crash occurred. Instabug's SDK grabs all the logs they need to fix bugs, crashes and performance issues in minutes instead of days. Get screenshots, device details, network logs, repro steps, and tons of other critical insights needed to resolve issues and prioritize product backlogs straight from your dashboard. It only takes a minute to integrate!

Get started now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.