prepare for carplay app hash
This commit is contained in:
1 parent
6d1633b44a
commit
9d8aef4039
1 file changed
+4
-1
@@ -133,7 +133,10 @@ struct SettingsView: View {
|
|||||||
let contents = try String(contentsOf: filePath)
|
let contents = try String(contentsOf: filePath)
|
||||||
try? FileManager.default.removeItem(at: filePath)
|
try? FileManager.default.removeItem(at: filePath)
|
||||||
await MainActor.run {
|
await MainActor.run {
|
||||||
pbHash = contents
|
let items = contents.split(separator: "\n")
|
||||||
|
if let pb = items.first {
|
||||||
|
pbHash = String(pb)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
print(error.localizedDescription)
|
print(error.localizedDescription)
|
||||||
|
|||||||
Reference in new issue
Block a user