david-swift 921f025e39 Update demo and fix bugs
- Fix build optional in ViewBuilder
- Fix maximum size frame modifier
- Improve inspector wrapper
- Improve header bar
- Improve status page
- Improve the naming of some elements
2023-10-12 22:15:15 +02:00

34 lines
789 B
Swift

//
// SceneStorage.swift
// Adwaita
//
// Created by david-swift on 31.08.23.
//
import GTUI
/// A storage for an app's window.
public class WindowStorage {
/// The window's identifier.
public var id: String
/// Whether the reference to the window should disappear in the next update.
public var destroy = false
/// The GTUI window.
public var window: GTUIWindow
/// The content's storage.
public var view: ViewStorage
/// Initialize a window storage.
/// - Parameters:
/// - id: The window's identifier.
/// - window: The GTUI window.
/// - view: The content's storage.
public init(id: String, window: GTUIWindow, view: ViewStorage) {
self.id = id
self.window = window
self.view = view
}
}