Sen descrición

ViewController.swift 613B

123456789101112131415161718192021222324
  1. //
  2. // ViewController.swift
  3. // App for Indeed
  4. //
  5. // Created by Mql Mac 2 on 11/05/2026.
  6. //
  7. import Cocoa
  8. final class ViewController: DashboardViewController {
  9. private var didApplyDefaultWindowFrame = false
  10. override func viewDidAppear() {
  11. super.viewDidAppear()
  12. guard !didApplyDefaultWindowFrame, let window = view.window else { return }
  13. didApplyDefaultWindowFrame = true
  14. // Layout can grow the window after launch; re-apply once content is on screen.
  15. view.layoutSubtreeIfNeeded()
  16. AppWindowConfiguration.apply(to: window)
  17. window.center()
  18. }
  19. }