macOS SwiftUI ToolbarItem does not update in response to model changes

Is it possible to create a SwiftUI toolbar item that will refresh its content in response to model changes. I want to display some text in the toolbar on macOS but the Text() object does not update its content when the model changes.

Is there some other solution to achieve this for SwiftUI toolbars for macOS ?