From 446b04e998b4dea95c5ce425ca9c004b71de0ab0 Mon Sep 17 00:00:00 2001 From: Stossy11 <69031796+stossy11@users.noreply.github.com> Date: Sat, 12 Apr 2025 10:15:52 +1000 Subject: [PATCH] Add Quotes --- StikJIT/Views/SettingsView.swift | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/StikJIT/Views/SettingsView.swift b/StikJIT/Views/SettingsView.swift index 98cb905..1ada318 100644 --- a/StikJIT/Views/SettingsView.swift +++ b/StikJIT/Views/SettingsView.swift @@ -420,7 +420,7 @@ struct SettingsView: View { // Vertical stack of collaborators VStack(spacing: 12) { - CollaboratorRow(name: "Stossy11", url: "https://github.com/Stossy11", imageUrl: developerProfiles["Stossy11"] ?? "") + CollaboratorRow(name: "Stossy11", url: "https://github.com/Stossy11", imageUrl: developerProfiles["Stossy11"] ?? "", quote: "I helped I guess :3") CollaboratorRow(name: "Neo", url: "https://neoarz.xyz/", imageUrl: developerProfiles["Neo"] ?? "") @@ -794,6 +794,7 @@ struct CollaboratorRow: View { var name: String var url: String var imageUrl: String + var quote: String? @AppStorage("customAccentColor") private var customAccentColorHex: String = "" private var accentColor: Color { @@ -814,9 +815,19 @@ struct CollaboratorRow: View { ProfileImage(url: imageUrl) .frame(width: 40, height: 40) - Text(name) - .foregroundColor(.primary) - .fontWeight(.medium) + VStack(alignment: .leading, spacing: 2) { + Text(name) + .foregroundColor(.primary) + .fontWeight(.medium) + + if let quote = quote { + Text("“\(quote)”") + .font(.subheadline) + .foregroundColor(.secondary) + .lineLimit(1) + .truncationMode(.tail) + } + } Spacer()