From b8a9c5cdd66ad885b01d5cbd0c750013f9548b49 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Wed, 17 Sep 2025 22:56:29 -0400 Subject: [PATCH] Fixed PayPal link, made open locations only persistent --- RIT Dining.xcodeproj/project.pbxproj | 4 ++-- RIT Dining/ContentView.swift | 3 ++- RIT Dining/Views/DonationView.swift | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RIT Dining.xcodeproj/project.pbxproj b/RIT Dining.xcodeproj/project.pbxproj index 70336ab..cbc06e7 100644 --- a/RIT Dining.xcodeproj/project.pbxproj +++ b/RIT Dining.xcodeproj/project.pbxproj @@ -257,7 +257,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 8; + CURRENT_PROJECT_VERSION = 9; DEVELOPMENT_TEAM = 5GF7GKNTK4; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; @@ -291,7 +291,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 8; + CURRENT_PROJECT_VERSION = 9; DEVELOPMENT_TEAM = 5GF7GKNTK4; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; diff --git a/RIT Dining/ContentView.swift b/RIT Dining/ContentView.swift index ad88332..38177b0 100644 --- a/RIT Dining/ContentView.swift +++ b/RIT Dining/ContentView.swift @@ -54,6 +54,8 @@ struct LocationList: View { } struct ContentView: View { + // Stored in AppStorage because making this setting persistent makes sense. Some people only ever want to see open locations. + @AppStorage("openLocationsOnly") var openLocationsOnly: Bool = false @State private var isLoading: Bool = true @State private var loadFailed: Bool = false @State private var showingDonationSheet: Bool = false @@ -61,7 +63,6 @@ struct ContentView: View { @State private var diningLocations: [DiningLocation] = [] @State private var lastRefreshed: Date? @State private var searchText: String = "" - @State private var openLocationsOnly: Bool = false private var animation: Animation { .linear diff --git a/RIT Dining/Views/DonationView.swift b/RIT Dining/Views/DonationView.swift index ae6498d..7b8459d 100644 --- a/RIT Dining/Views/DonationView.swift +++ b/RIT Dining/Views/DonationView.swift @@ -66,7 +66,7 @@ struct DonationView: View { } .buttonStyle(.plain) Button(action: { - openURL(URL(string: "paypal.me/NinjaCheetahX")!) + openURL(URL(string: "https://paypal.me/NinjaCheetahX")!) }) { HStack(alignment: .center) { Image("paypalLogo")