From 3eeffada1f33194c5f1bcf8e4acedee288b71385 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 20 May 2024 12:49:26 -0400 Subject: [PATCH] Add tip jar link to push notifications settings --- .../Notifications/NotificationsPrefsView.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift b/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift index 5b6f4b53..c8437e26 100644 --- a/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift +++ b/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift @@ -17,6 +17,15 @@ struct NotificationsPrefsView: View { var body: some View { List { + NavigationLink { + TipJarView() + } label: { + Text("Push notifications are available for free to all users, but providing them has an ongoing cost. If you like the app, please consider \(Text("supporting Tusker").foregroundColor(.accentColor)).") + .font(.callout) + .foregroundStyle(.secondary) + } + .listRowBackground(Color.accentColor.opacity(0.1)) + Section { ForEach(userAccounts.accounts) { account in PushInstanceSettingsView(account: account)