Post

Replies

Boosts

Views

Activity

Comment on SwiftData serious bug with relationships and CloudKit in iOS 18.0 (Xcode 16 Beta)
Yes. The value of the relationship is available in the second device, it just doesn't appear on the rows, as you can see in the picture. The system doesn't update the views when they are inside a ForEach loop. I used notifications to force the update but it is not a good solution because this also happens locally, not just with CloudKit. I found a way to fix it by applying the id() modifier to ForEach. It forces the system to update the content of the ForEach every time a new value is available.
Sep ’24
Comment on iOS Beta 18.1 does not install on old devices
Hi. Thanks. I can't show you the image here, but If I go to Settings > General > Software Update it says "iOS 18.0, iOS is up to date". I drag the screen down, but it never updates to 18.1. Both devices show the same screen, although of course on iPad says "iPadOS 18.0, iPadOS is up to date". That's why I posted this message. It is really weird that it stop updating as soon as the Beta 1 of 18.1 became available. My guess is that it is because of Apple Intelligence, but I don't know.
Aug ’24
Comment on How to form a search predicate using swift data with a one to many model
Hi, thanks for your time. I asked you because someone already posted about this issue a few days ago but nobody answered (link below). It looks like it is not possible to perform a case-insensitive search with the Predicate macro, which kind of invalidates SwiftData for professional use (unless I'm missing something) https://developer.apple.com/forums/thread/733215
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23
Comment on barTintColor not working in iOS 15
Hi, Rincewind. Quick question. How do you change the Navigation Bar's tint color? The classes UINavigationBarAppearance, UIBarAppearance, and UIBarButtonItemAppearance do not include any tintColor property. The only way I found is with the tintColor property of the UINavigationBar, but this is a Legacy property and we are supposed to use appearances objects. For instance, how do you change the color of the image for the Back button? Thanks!
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’21
Comment on XCode 16 beta 3 creating a folder instead of a group for all project initial content
Awful decision.
Replies
Boosts
Views
Activity
Nov ’25
Comment on SwiftData serious bug with relationships and CloudKit in iOS 18.0 (Xcode 16 Beta)
I'm going to file my own bug report on Monday because I'm having these problems since iOS 18 Beta 1 and they haven't done anything to fix it. Thanks for the info.
Replies
Boosts
Views
Activity
Sep ’24
Comment on SwiftData serious bug with relationships and CloudKit in iOS 18.0 (Xcode 16 Beta)
Yes. The value of the relationship is available in the second device, it just doesn't appear on the rows, as you can see in the picture. The system doesn't update the views when they are inside a ForEach loop. I used notifications to force the update but it is not a good solution because this also happens locally, not just with CloudKit. I found a way to fix it by applying the id() modifier to ForEach. It forces the system to update the content of the ForEach every time a new value is available.
Replies
Boosts
Views
Activity
Sep ’24
Comment on Importing Data into SwiftData in the Background Using ModelActor and @Query
That shouldn't be necessary. SwiftData was designed to automatically save the context. Unfortunately, they changed something and now we have to do it manually. Maybe when they release the final version of iOS 18 this is fixed.
Replies
Boosts
Views
Activity
Aug ’24
Comment on iOS Beta 18.1 does not install on old devices
Hi. Thanks. I can't show you the image here, but If I go to Settings > General > Software Update it says "iOS 18.0, iOS is up to date". I drag the screen down, but it never updates to 18.1. Both devices show the same screen, although of course on iPad says "iPadOS 18.0, iPadOS is up to date". That's why I posted this message. It is really weird that it stop updating as soon as the Beta 1 of 18.1 became available. My guess is that it is because of Apple Intelligence, but I don't know.
Replies
Boosts
Views
Activity
Aug ’24
Comment on Updating a Core Data object does not update the SwiftUI view
Thanks! Actually, manually updating the container view's id() is the best solution for my case, the other options make the view extremely more complex than it should be. I will have to check the SwiftData issues later because they all appeared with Xcode 16 and some may be fixed later.
Replies
Boosts
Views
Activity
Aug ’24
Comment on Ready for Sale > Removed from Sale - bug in iTunes Connect?
Thanks. I had this problem today and your old post was helpful.
Replies
Boosts
Views
Activity
Oct ’23
Comment on How to form a search predicate using swift data with a one to many model
Hi, thanks for your time. I asked you because someone already posted about this issue a few days ago but nobody answered (link below). It looks like it is not possible to perform a case-insensitive search with the Predicate macro, which kind of invalidates SwiftData for professional use (unless I'm missing something) https://developer.apple.com/forums/thread/733215
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on How to form a search predicate using swift data with a one to many model
Hi, thanks, but unfortunately I tried that before and get the error "Fatal error: Couldn't find \Book.title.localizedLowercase on Book" (title is a String property in the Book class) var predicate = #Predicate { $0.title.localizedLowercase.contains(search) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on How to form a search predicate using swift data with a one to many model
Thanks for the suggestions. Very useful. One question: do you know if it is possible to perform a case-insensitive search with the Predicate macro? I tried using lowercased() but it is not allowed.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Binding with ForEach or List doesn't work anymore when using @Observable macro
Oh, wow. That's a weird workaround. Thanks.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on iOS App shows blank screen after migrating to SwiftUI Lifecycle
Thanks. This worked for me.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on NavigationSplitView not working as shown in "What's new with SwiftUI" session
It's been two days for me LOL. I tried everything until I found this. Unfortunately, they still didn't fix it in Beta 3.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Macos 12 not available after update to Xcode to Version 13.0 (13A233)
This website has all the links. I'm downloading Beta 5 right now https://xcodereleases.com/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on barTintColor not working in iOS 15
Hi, Rincewind. Quick question. How do you change the Navigation Bar's tint color? The classes UINavigationBarAppearance, UIBarAppearance, and UIBarButtonItemAppearance do not include any tintColor property. The only way I found is with the tintColor property of the UINavigationBar, but this is a Legacy property and we are supposed to use appearances objects. For instance, how do you change the color of the image for the Back button? Thanks!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’21