Post

Replies

Boosts

Views

Activity

Comment on Autorefresh MapPolyline when route data grows
I had a similar problem and what I did was creating an array of "Identifiable Structs" with only 1 item with the coordinates. Every time I had new data, I replaced the struct in the array and because it has a new ID, it's updated accordingly. It's almost the same that you are saying, but with your example, if you have too many lines, you start getting an error after approximately 600 lines. With my solution, I did a test with almost 5000 lines, all in the same polyline without any problem.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23
Comment on Understanding the warning and how to fix it: Non-sendable cannot cross actor boundary
Awesome!
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Please explain how to use MapProxy and MapReader
I only needed to get an update about the map camera, so I don't know about dragging items around. I haven't seen anything useful for your need, yet.
Replies
Boosts
Views
Activity
Jul ’23
Comment on Please explain how to use MapProxy and MapReader
I just found an .onMapCameraChange(), I think it might have what I want :)
Replies
Boosts
Views
Activity
Jul ’23
Comment on Autorefresh MapPolyline when route data grows
I had a similar problem and what I did was creating an array of "Identifiable Structs" with only 1 item with the coordinates. Every time I had new data, I replaced the struct in the array and because it has a new ID, it's updated accordingly. It's almost the same that you are saying, but with your example, if you have too many lines, you start getting an error after approximately 600 lines. With my solution, I did a test with almost 5000 lines, all in the same polyline without any problem.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Understanding the warning and how to fix it: Non-sendable cannot cross actor boundary
The warning was caused by a bug in the Xcode beta, but this will be an issue in the future, so I hope that Apple will share the "right way" to do this, or probably they will make everything Sendable in CK.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on No NSEntityDescriptions in any model claim the NSManagedObject subclass 'CoreDataExampleTests.TodoMO' so +entity is confused
I would try setting the context in the setUp method.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22