From 6aa0598da4b0ad1a6312baeb6766ed5a6dbddcf5 Mon Sep 17 00:00:00 2001 From: leminlimez <59540996+leminlimez@users.noreply.github.com> Date: Sat, 21 Jun 2025 09:15:22 -0400 Subject: [PATCH] save carplay hash to make transition easier --- Pocket Poster/Views/SettingsView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Pocket Poster/Views/SettingsView.swift b/Pocket Poster/Views/SettingsView.swift index d00e3f1..baceedd 100644 --- a/Pocket Poster/Views/SettingsView.swift +++ b/Pocket Poster/Views/SettingsView.swift @@ -9,7 +9,8 @@ import SwiftUI struct SettingsView: View { // Prefs - @AppStorage("pbHash") var pbHash: String = "" + @AppStorage("pbHash") var pbHash: String = "" // PosterBoard hash + @AppStorage("cpHash") var cpHash: String = "" // CarPlay hash @State var checkingForHash: Bool = false @State var hashCheckTask: Task? = nil @@ -138,6 +139,9 @@ struct SettingsView: View { if let pb = items.first { pbHash = String(pb) } + if items.count >= 2 { + cpHash = String(items[1]) + } } } catch { print(error.localizedDescription)