From 3236ea2c69b474c29a754c8a7a89ab85c6cc8553 Mon Sep 17 00:00:00 2001 From: Morris Richman <81453549+Mcrich23@users.noreply.github.com> Date: Sun, 11 Jun 2023 22:54:45 -0700 Subject: [PATCH] made notification priority picker ios 15+ only --- .../NotificationPreferencesBody.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Seattle Bridge Tracker/Notification Preferences/NotificationPreferencesBody.swift b/Seattle Bridge Tracker/Notification Preferences/NotificationPreferencesBody.swift index 9e0d31d..f17ac75 100644 --- a/Seattle Bridge Tracker/Notification Preferences/NotificationPreferencesBody.swift +++ b/Seattle Bridge Tracker/Notification Preferences/NotificationPreferencesBody.swift @@ -109,7 +109,9 @@ struct NotificationPreferencesBody: View { .padding(.bottom) NotificationPreferenceDaysPicker(preference: $preference) NotificationPreferencesTimePicker(preference: $preference) - NotificationPreferencesImportance(preference: $preference) + if #available(iOS 15, *) { + NotificationPreferencesImportance(preference: $preference) + } NotificationPreferencesSelectedBridges(preference: $preference) NotificationPreferencesActiveToggle(preference: $preference) }