Hi, i'm trying to figure out how to make my MacOS app start in Full Screen when i launch it. I'm using SwiftUI. Can someone help me?
Enter Full screen MacOS SwiftUI
You can use this in the windowcontroller.swift
override func windowDidLoad() {
super.windowDidLoad()
window.delegate = self
window.toggleFullScreen(self)
But I am having an issue on shutdown or reboot if the user selects "relaunch open apps" the app launches in full screen but then a black screen covers the app. Switching to the finder and back to the app resolves the blackout but I'd like a way to resolve this issue.