mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2026-03-04 21:25:27 -05:00
Fixed PayPal link, made open locations only persistent
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user