Post

Replies

Boosts

Views

Activity

Reply to Navigation: update multiple times per frame
I have the same problem. @State private var path: [Route] = [] NavigationStack(path: $path) {       Button("Settings") {           path.append(.settings)       }       .navigationDestination(for: Route) { route in if route == .setting { SettingsView() } else { EmptyView() } }  } If i use NavigationLink in SettingsView, and there is a @Appstorage variable in it, will lead to an infinite loop. Can NavigationStack(with NavigationPath binding) and NavigationLink be used together?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to Navigation: update multiple times per frame
The old API not work well. NavigationLink("About") { AboutView() } But the new API works. NavigationLink("About", value: .about)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Navigation: update multiple times per frame
I have the same problem. @State private var path: [Route] = [] NavigationStack(path: $path) {       Button("Settings") {           path.append(.settings)       }       .navigationDestination(for: Route) { route in if route == .setting { SettingsView() } else { EmptyView() } }  } If i use NavigationLink in SettingsView, and there is a @Appstorage variable in it, will lead to an infinite loop. Can NavigationStack(with NavigationPath binding) and NavigationLink be used together?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Xcode 13.4.1 simulator with iCloud
CloudKit also not work
Replies
Boosts
Views
Activity
Aug ’22
Reply to URLSessionWebSocketTask Crash
Anyone has tested it using iOS 15.4 RC?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to URLSessionWebSocketTask Crash
15.4 current is beta version
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to How to make AVSpeechSynthesizer work for write and delegate (Big Sur)
Why export wav format that can't play, but caf format is OK?
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to SwiftUI default focus on TextField/TextEditor when view is loaded
You should have some delay.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Memory Leaks with SwiftUI
@StateObject object store in global, and will not dealloc But it can be override and then call deinit.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21