Update about dialog function to use new format

This commit is contained in:
Ira Limitanei 2026-01-16 11:22:21 +09:00
parent b3f222e316
commit 96e35c5777
Signed by: lambdaclan
GPG Key ID: 43D6A575B03B80E4

View File

@ -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<Bool>,
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
)
}