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

iOS 14 Features — Revision Part 2

SwiftUI Tutorial: Applying Overlay to Image

Ripple into page with Flutter

SwiftUI | Create a Picker With SegmentedPickerStyle

SwiftUI logo with an iPhone displaying a SwiftUI picker

ABBYY Mobile is Fully Equipped for iOS 15

Build iOS apps in 10 days | Understanding Apple Developer Ecosystem

OneID iOS Team: 2020 In Review

5 Must have iOS14 Homescreen Widgets (December 2020)

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
gokhun

gokhun

More from Medium

How to create an Xcode project and connect it to Github?

Firebase Authentication for Swift

UIKit The Series: EP.1 How to custom the UI Table View Cell

How to add CoreHaptics to your iOS app