ios, web, thoughts & notes (rss)

dreamscape by isak solheim

30 dec 2022 ~

Cannot find 'MenuBarExtra' in scope Fix

MenuBarExtra is only available for macOS 13+. If you encounter the error above, make sure that your Xcode version is at least 14.1.

import SwiftUI

struct ScrollApp: App {
  var body: some Scene {
    MenuBarExtra("Menu Bar", systemImage: "circle") {
      Text("Hello, Menu Bar!")
      Image(systemName: "globe")