Fixed PayPal link, made open locations only persistent

This commit is contained in:
Campbell 2025-09-17 22:56:29 -04:00
parent 2c607553ac
commit b8a9c5cdd6
Signed by: NinjaCheetah
GPG Key ID: 39C2500E1778B156
3 changed files with 5 additions and 4 deletions

View File

@ -257,7 +257,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 8; CURRENT_PROJECT_VERSION = 9;
DEVELOPMENT_TEAM = 5GF7GKNTK4; DEVELOPMENT_TEAM = 5GF7GKNTK4;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
@ -291,7 +291,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 8; CURRENT_PROJECT_VERSION = 9;
DEVELOPMENT_TEAM = 5GF7GKNTK4; DEVELOPMENT_TEAM = 5GF7GKNTK4;
ENABLE_PREVIEWS = YES; ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;

View File

@ -54,6 +54,8 @@ struct LocationList: View {
} }
struct ContentView: 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 isLoading: Bool = true
@State private var loadFailed: Bool = false @State private var loadFailed: Bool = false
@State private var showingDonationSheet: Bool = false @State private var showingDonationSheet: Bool = false
@ -61,7 +63,6 @@ struct ContentView: View {
@State private var diningLocations: [DiningLocation] = [] @State private var diningLocations: [DiningLocation] = []
@State private var lastRefreshed: Date? @State private var lastRefreshed: Date?
@State private var searchText: String = "" @State private var searchText: String = ""
@State private var openLocationsOnly: Bool = false
private var animation: Animation { private var animation: Animation {
.linear .linear

View File

@ -66,7 +66,7 @@ struct DonationView: View {
} }
.buttonStyle(.plain) .buttonStyle(.plain)
Button(action: { Button(action: {
openURL(URL(string: "paypal.me/NinjaCheetahX")!) openURL(URL(string: "https://paypal.me/NinjaCheetahX")!)
}) { }) {
HStack(alignment: .center) { HStack(alignment: .center) {
Image("paypalLogo") Image("paypalLogo")