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

Apple Silicon and the first redesigned iMac… when?

As all of you know, this year’s (2020) WWDC unveiled Apple Silicon and macOS 11 Big Sur.

Upon seeing Big Sur for the first time, a large variety of users screamed for the future merging of iPadOS and macOS – a very improbable thing – and a future touch screen iMac. Here’s why we won’t see those two things any time soon (if ever).

Continue reading