Post

Replies

Boosts

Views

Activity

Reply to SwiftUI default focus on TextField/TextEditor when view is loaded
@avitzur, where do you put that call in the view? I have tried it in .onAppear (and .task) on my NavigationView and then my app crashes. Any hints? Updated I added .onAppear() {                             DispatchQueue.main.asyncAfter(deadline: .now() + 0.5){ nameIsFocused = true }                         } on my TextField, and now it works. Thank you avitzur
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22
Reply to SwiftUI default focus on TextField/TextEditor when view is loaded
@avitzur, where do you put that call in the view? I have tried it in .onAppear (and .task) on my NavigationView and then my app crashes. Any hints? Updated I added .onAppear() {                             DispatchQueue.main.asyncAfter(deadline: .now() + 0.5){ nameIsFocused = true }                         } on my TextField, and now it works. Thank you avitzur
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Xcode13.3 won't install - infinite spinning symbol
I have 90 GB available, so that shouldn't be the problem. I'm downloading the xib now, hopefully that will work. Any tips on how to cancel the AppStore download, there is no Cancel-button on the install?
Replies
Boosts
Views
Activity
Mar ’22