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.
Asked
Active
Viewed 1,358 times
3
-
there is no focus possibility in iOS-SwiftUI at first place to set on some object, do you working on macOS? – ios coder Mar 23 '21 at 09:03
-
@swiftPunk I am working on ios app. In some situation i need accessibility voice over focus to stay on same object even after page refresh. Is is possible? or can i move focus to particular object or view programatically? – AVR Mar 23 '21 at 09:19
-
As I said there is no focus possibility exist in SwiftUI-iOS for us as Xcode user to use it! – ios coder Mar 23 '21 at 09:45
1 Answers
0
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.

kalimsayyad
- 1,076
- 8
- 9