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.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: