Post

Replies

Boosts

Views

Activity

Reply to Core Data crashes when attempting to establish relationship to an entity with derived attribute in the background
@DTS Engineer Thanks for your respsonse. I have filed feedback FB14508189. I was able to find a workaround by creating the background context as a child to the view context, in contrast to as a standalone context. I would then perform operations on this child context, save it, then save the view context. This seems to avoid the crash. Can you comment on the performance difference between this approach and saving on a standalone background context then wait for the system to auto merge changes to the view context?
Topic: App & System Services SubTopic: iCloud Tags:
Jul ’24
Reply to How to replace tabBar with bottomBar with smooth animation in SwiftUI?
@DTS Engineer Thank you for the example. In my app, TabView is the root view, and NavigationStack is nested within each Tab. I changed the provided example to match the structure of my app, and found that the animation issue was still present. Is this expected behavior? struct ContentView: View { @State private var isEditing = false var body: some View { TabView { Tab("Received", systemImage: "tray.and.arrow.down.fill") { NavigationStack { Button("toogle") { isEditing.toggle() } .toolbar(isEditing ? .hidden : .visible, for: .tabBar) .toolbar(isEditing ? .visible : .hidden, for: .bottomBar) .animation(.easeIn, value: isEditing) .toolbar { ToolbarItem(placement: .bottomBar) { Text("hello world") } } } } .badge(2) Tab("Sent", systemImage: "tray.and.arrow.up.fill") { Color.blue } Tab("Account", systemImage: "person.crop.circle.fill") { Color.green } .badge("!") } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
Reply to What is a performant way to change view offset as user scrolls?
@DTS Engineer Thanks for the response. I could use .listStyle(.plain), but I'd still like to maintain the inset grouped style for other rows. I think there is no way to mix-and-match plain and inset grouped styles in the same list? As I have mentioned, the offset approach seems to cause bad scrolling performance. Any idea why that is?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to @Observable state class reinitializes every time view is updated
@DTS Engineer Hi Paris, Thanks for following up. I was still able to reproduce this behavior on iOS 18 beta 4 (22A5316k). I have commented on the feedback report.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Core Data crashes when attempting to establish relationship to an entity with derived attribute in the background
@DTS Engineer Thanks for your respsonse. I have filed feedback FB14508189. I was able to find a workaround by creating the background context as a child to the view context, in contrast to as a standalone context. I would then perform operations on this child context, save it, then save the view context. This seems to avoid the crash. Can you comment on the performance difference between this approach and saving on a standalone background context then wait for the system to auto merge changes to the view context?
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Core Data crashes when attempting to establish relationship to an entity with derived attribute in the background
Submitted TSI case ID 8425387
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to How to replace tabBar with bottomBar with smooth animation in SwiftUI?
I have submitted FB14464408.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Keyboard pushes Custom TabBar Up
Have you tried .ignoresSafeArea(.keyboard)?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to How to replace tabBar with bottomBar with smooth animation in SwiftUI?
@DTS Engineer Thank you for the example. In my app, TabView is the root view, and NavigationStack is nested within each Tab. I changed the provided example to match the structure of my app, and found that the animation issue was still present. Is this expected behavior? struct ContentView: View { @State private var isEditing = false var body: some View { TabView { Tab("Received", systemImage: "tray.and.arrow.down.fill") { NavigationStack { Button("toogle") { isEditing.toggle() } .toolbar(isEditing ? .hidden : .visible, for: .tabBar) .toolbar(isEditing ? .visible : .hidden, for: .bottomBar) .animation(.easeIn, value: isEditing) .toolbar { ToolbarItem(placement: .bottomBar) { Text("hello world") } } } } .badge(2) Tab("Sent", systemImage: "tray.and.arrow.up.fill") { Color.blue } Tab("Account", systemImage: "person.crop.circle.fill") { Color.green } .badge("!") } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Impossible to enter Chinese characters in searchable() field after token insertion
I have resubmitted feedback FB13965455
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24