Creating a macOS Statusbar Application

  • A device that is capable of running macOS Big Sur
  • Xcode (I am using Version 13.2.1 (13C100))

Create Project

  • Open Xcode and create new project.
  • Select App under macOS platform
  • Enter your product name (Statusbar)
  • Select Team if you have one or let Xcode generate one (My developer account)
  • Enter an organization identifier (Reverse domain — dev.gokhun)
  • Select SwiftUI as interface and Swift as language
  • Uncheck core data and tests for now

Add Statusbar

Open Windows

  • We have used an adapter to add AppKit to our SwiftUI application.
  • We have used another adapter to call SwiftUI view from AppKit NSWindow.
  • We have set application target property to run it in background




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Flutter: New plugin show good animation for ListView

Create a Form in SwiftUI 2.0

Creating a form with SwiftUI

How to use Swift UI with StoryBoard

Spheroid.Earth Alpha for iOS is released!

How does one generate a random number in Apple’s Swift language?

Implementation of Page-Object-Model (POM) to XCUITest (Native iOS Testing) with Swift

Why your iPhone show a Green, Orange, and Red dot in the status bar

Crowdin CDN— streamline the localization process (iOS)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


More from Medium

Check Internet Connectivity with NWPathMonitor In Swift

Simple Things That Makes Your Code Look Better

SharePlay Tutorial — Share custom data between iOS and MacOS

Start using Vapor 4 without Toolbox / Homebrew