mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2025-12-02 01:21:35 -05:00
Dining locations that also exist on FD MealPlanner now have a "View Menu" button under the favorite/OnDemand/map buttons that take you to a new view that pulls the location's menu from FD MealPlanner. You can view all of the menu items that have actually been added to that site, and tap them for more details (which will be expanded on later). Searching the item list is supported, with more filtering options coming in the next update. Meal periods can be browsed using the clock button in the top right for locations that are open more than once per day. Other changes: - App renamed from "RIT Dining" to "TigerDine" to not get me in trouble for an App Store release - Slightly changed the way that dining locations' short descriptions and current open times are displayed in the detail view - Fixed the box truck icon used in the food truck view being squished
63 lines
2.3 KiB
Swift
63 lines
2.3 KiB
Swift
//
|
|
// AboutView.swift
|
|
// RIT Dining
|
|
//
|
|
// Created by Campbell on 9/12/25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct AboutView: View {
|
|
@Environment(\.openURL) private var openURL
|
|
let appVersionString: String = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String
|
|
let buildNumber: String = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading) {
|
|
Image("Icon")
|
|
.resizable()
|
|
.frame(width: 128, height: 128)
|
|
.clipShape(RoundedRectangle(cornerRadius: 20))
|
|
Text("TigerDine")
|
|
.font(.title)
|
|
Text("An unofficial RIT Dining app")
|
|
.font(.subheadline)
|
|
Text("Version \(appVersionString) (\(buildNumber))")
|
|
.foregroundStyle(.secondary)
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
Text("Dining locations, their descriptions, and their opening hours are sourced from the RIT student-run TigerCenter API. Building occupancy information is sourced from the official RIT maps API.")
|
|
Text("This app is not affiliated, associated, authorized, endorsed by, or in any way officially connected with the Rochester Institute of Technology. This app is student created and maintained.")
|
|
HStack {
|
|
Button(action: {
|
|
openURL(URL(string: "https://github.com/NinjaCheetah/RIT-Dining")!)
|
|
}) {
|
|
Text("Source Code")
|
|
}
|
|
Text("•")
|
|
.foregroundStyle(.secondary)
|
|
Button(action: {
|
|
openURL(URL(string: "https://tigercenter.rit.edu/")!)
|
|
}) {
|
|
Text("TigerCenter")
|
|
}
|
|
Text("•")
|
|
.foregroundStyle(.secondary)
|
|
Button(action: {
|
|
openURL(URL(string: "https://maps.rit.edu/")!)
|
|
}) {
|
|
Text("Official RIT Map")
|
|
}
|
|
}
|
|
}
|
|
Spacer()
|
|
}
|
|
.padding()
|
|
.navigationTitle("About")
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
AboutView()
|
|
}
|