adwaita-swift/Sources/Core/Model/WindowView.swift
david-swift 8eeda083e9
All checks were successful
Deploy Docs / publish (push) Successful in 18m28s
SwiftLint / SwiftLint (push) Successful in 5s
Separate AnyView extensions from widgets
2024-10-16 14:22:34 +02:00

18 lines
393 B
Swift

//
// WindowView.swift
// Adwaita
//
// Created by david-swift on 06.08.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
}