简体   繁体   中英

Accessibility Voiceover focus issue in SwiftUI

In swiftUI how to move focus to required view. After click on one button api is getting called and view is refreshing, but after that focus is moving back to top left corner of view. i want that focus to stay on same button.

Unfortunately SwiftUI does not support focus state in iOS less than 15. You can use their API which is supported in IOS 15 only. The other option will be to use UIKit based component and manage focus but this will be lot of work depending on your UI design and components.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM