Spit and polish on the Accounts views

This commit is contained in:
Stuart Breckenridge
2022-12-18 17:08:03 +08:00
parent 4ed11c0fc6
commit b4cb253c66
9 changed files with 101 additions and 62 deletions

View File

@@ -22,6 +22,9 @@ struct DismissOnAccountAdd: ViewModifier {
}
extension View {
/// Convenience modifier to dismiss a view when an account has been added.
/// - Returns: `View`
func dismissOnAccountAdd() -> some View {
modifier(DismissOnAccountAdd())
}

View File

@@ -23,6 +23,10 @@ struct DismissOnExternalContext: ViewModifier {
}
extension View {
/// This function dismisses a view when the user launches from
/// an external action, for example, opening the app from the widget.
/// - Returns: `View`
func dismissOnExternalContextLaunch() -> some View {
modifier(DismissOnExternalContext())
}