From 96e35c5777f599e338a495c7c6cd9f0bcd5ae726 Mon Sep 17 00:00:00 2001 From: Ira Limitanei Date: Fri, 16 Jan 2026 11:22:21 +0900 Subject: [PATCH] Update about dialog function to use new format --- Sources/Adwaita/AnyView+.swift | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Sources/Adwaita/AnyView+.swift b/Sources/Adwaita/AnyView+.swift index 851b547..10e6c5a 100644 --- a/Sources/Adwaita/AnyView+.swift +++ b/Sources/Adwaita/AnyView+.swift @@ -12,30 +12,15 @@ extension AnyView { /// Add an about dialog to the parent window. /// - Parameters: /// - visible: Whether the dialog is presented. - /// - app: The app's name. - /// - developer: The developer's name. - /// - version: The version string. - /// - icon: The app icon. - /// - website: The app's website. - /// - issues: Website for reporting issues. + /// - configure: A closure that mutates the dialog configuration. public func aboutDialog( visible: Binding, - app: String? = nil, - developer: String? = nil, - version: String? = nil, - icon: Icon? = nil, - website: URL? = nil, - issues: URL? = nil + configure: (inout AdwaitaAboutDialogConfig) -> Void ) -> AnyView { AboutDialog( visible: visible, child: self, - appName: app, - developer: developer, - version: version, - icon: icon, - website: website, - issues: issues + configure: configure ) }