mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Spit and polish on the Accounts views
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user