How to disable the Full Screen button with SwiftUI

In macOS, the full screen button is that green circle button in the menu bar, able to maximise a window to full screen.

But what if we are making an app where this feature would be pointless, or even ugly?
There is already an app made by Apple that has this feature disabled: I’m talking about System Preferences.

Continue reading

How to create a sidebar to switch views in SwiftUI

This project will consist of our standard ContentView, a view we’ll create for the sidebar and as many views as the sidebar items (to keep things tidy).

Let’s start by creating the sidebar view. The sidebar will be made by creating a List and adding as many NavigationLink structures as we need.

Continue reading