Post

Replies

Boosts

Views

Activity

Reply to Button Labels in MenuBarExtra not showing images/icons
Try to add the modifier - .menuBarExtraStyle: @main struct mbe_testingApp: App { @State var clickCount = 0 @ObservedObject var timerOutput = TimerViewModel() var body: some Scene { MenuBarExtra("mbe test", systemImage: "\(clickCount).circle") { Button() { clickCount += 1 print("incremented") } label: { Label("Increment", systemImage: "plus.square.fill") } Button() { if clickCount > 0 { clickCount -= 1 } print("decremented") } label: { Label("Decrement", systemImage: "minus.square.fill") } Button() { print("clicked") } label: { Label(timerOutput.somelist[0], systemImage: "clock") } } .menuBarExtraStyle(.window) } }
Sep ’23