forked from aparoksha/adwaita-swift
Update about dialog function to use new format
This commit is contained in:
parent
b3f222e316
commit
96e35c5777
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user