Skip to content

ObservableMIDIManager device list is not updated when devices change isOffline state. #240

@hekuli

Description

@hekuli

Please Confirm

  • I have reviewed the MIDIKit Documentation which contains descriptive guides and extensive API reference
  • I have searched Issues and Discussions to see if the same question has already been asked

macOS Version(s) Used to Build

macOS 15.x Sequoia

Xcode Version(s)

Xcode 16.x

Description

I expected that changes to the isOffline status for devices would automatically refresh for the Observable variation of MidiManager. This is somehow not the case.

To reproduce just create an ObservableMIDIManager. Loop over the devices in the SwiftUI view like in the example. Be sure to display the online/offline status via device.isOffline. Then turn on off any connected midi controller. The status never changes.

ForEach(mm.devices) { device in
  Text(device.name)
  Text(device.isOffline)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions