| 12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // ViewController.swift
- // google_apps
- //
- // Created by Dev Mac 1 on 27/03/2026.
- //
- import Cocoa
- import SwiftUI
- class ViewController: NSViewController {
- private var hostingView: NSHostingView<LauncherRootView>?
- override func viewDidLoad() {
- super.viewDidLoad()
- let launcher = LauncherRootView()
- let hostingView = NSHostingView(rootView: launcher)
- hostingView.translatesAutoresizingMaskIntoConstraints = false
- view.addSubview(hostingView)
- NSLayoutConstraint.activate([
- hostingView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
- hostingView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
- hostingView.topAnchor.constraint(equalTo: view.topAnchor),
- hostingView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
- ])
- self.hostingView = hostingView
- }
- override var representedObject: Any? {
- didSet {
- // Intentionally left blank.
- }
- }
- }
|