Sign in


Recently, GitHub released a new feature that allows users to set a profile level README, allowing users to express themselves in more than just a one-line bio.

Create a profile level README

In my previous article, I shared about how we might go about creating a macOS app without a storyboard or .xib file. Now, we will learn how to add a menu bar (mainMenu bar) and toolbar and use constraints for our UI.

This tutorial is based on my previous article where we started a new project from scratch.

This tutorial uses Swift 5.2.2 and Xcode 11.4.1 (11E503a).

1. Adding a menu bar

If you followed my previous article, you may add this to main.swift:

let menu = AppMenu()
NSApplication.shared.mainMenu = menu
Added Line 11 & 13 in main.swift

Developing apps with storyboards is a pain. It’s more of a pain, especially when you have to deal with storyboards and merging conflicts using git.

If you aren’t persuaded enough to switch to programmatically creating your UI, you may check out this awesome article by Corey Davis, here (but be sure to return if you are looking to create macOS apps).

This tutorial uses Swift 5.2.2 and Xcode 11.4.1 (11E503a).

This tutorial assumes that you

  • have some experience with developing macOS apps using a storyboard
  • are ready to learn

1. Start from scratch

Ryan Theodore The

student. hobbyist. developer. designer. Learn more about me at! Student, JS and Swift dev.

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