PicoMLX / PicoMLXServer

The easiest way to run the fastest MLX-based LLMs locally
MIT License
207 stars 15 forks source link

SwiftUI: View that show @Observable ServerController and Server don't update #2

Closed ronaldmannak closed 7 months ago

ronaldmannak commented 7 months ago

The following views don't update when @Observable instances of ServerController and Server are updated:

The views are modeled after the Library/Book example from Apple: https://developer.apple.com/documentation/swiftui/migrating-from-the-observable-object-protocol-to-the-observable-macro

Can anyone find the issue here?

ronaldmannak commented 7 months ago

Fixed in https://github.com/ronaldmannak/PicoMLXServer/commit/1f07bdad5645d3e45952426f87dc4a80a86c47bc