david-swift 461e9f4d50 Support modifying a window's instance inside views
Also add support for observing a window's size
2024-02-26 22:53:34 +01:00

18 lines
393 B
Swift

//
// WindowView.swift
// Adwaita
//
// Created by david-swift on 26.02.24.
//
/// A special view that can access the window of the current instance
/// if located as the first view directly inside a window.
public protocol WindowView: View {
/// Modify the window.
/// - Parameter window: The window.
/// - Returns: The window.
func window(_ window: Window) -> Window
}