21 lines
589 B
Swift
21 lines
589 B
Swift
// PreferencesWindowController.swift
|
|
// GreenshotMac
|
|
|
|
import AppKit
|
|
import SwiftUI
|
|
|
|
@MainActor
|
|
final class PreferencesWindowController: NSWindowController {
|
|
|
|
convenience init() {
|
|
let hosting = NSHostingController(rootView: PreferencesView())
|
|
let window = NSWindow(contentViewController: hosting)
|
|
window.title = "GreenshotMac Preferences"
|
|
window.styleMask = [.titled, .closable]
|
|
window.setContentSize(NSSize(width: 552, height: 412))
|
|
window.center()
|
|
window.isReleasedWhenClosed = false
|
|
self.init(window: window)
|
|
}
|
|
}
|