dont show carplay menu on ipads
This commit is contained in:
1 parent
395cbe5e13
commit
7434897eac
2 files changed
+6
No files matched your search
@@ -18,10 +18,12 @@ struct RootView: View {
|
||||
.tabItem {
|
||||
Label("Videos", systemImage: "camera")
|
||||
}
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
CarPlayView()
|
||||
.tabItem {
|
||||
Label("CarPlay", systemImage: "car")
|
||||
}
|
||||
}
|
||||
ExploreView()
|
||||
.tabItem {
|
||||
Label("Explore", systemImage: "safari")
|
||||
|
||||
@@ -23,9 +23,11 @@ struct SettingsView: View {
|
||||
TextField("Enter PosterBoard App Hash", text: $pbHash)
|
||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
||||
.font(.system(.body, design: .monospaced))
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
TextField("Enter CarPlayWallpaper App Hash", text: $cpHash)
|
||||
.textFieldStyle(RoundedBorderTextFieldStyle())
|
||||
.font(.system(.body, design: .monospaced))
|
||||
}
|
||||
HStack {
|
||||
Spacer()
|
||||
// Run task to check until file exists from Nugget pc over AFC
|
||||
@@ -164,6 +166,7 @@ struct SettingsView: View {
|
||||
pbHash = contents
|
||||
}
|
||||
// check for carplay hash
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
let carplayPath = SymHandler.getCarPlayHashURL()
|
||||
if FileManager.default.fileExists(atPath: carplayPath.path()) {
|
||||
let carplayContents = try String(contentsOf: carplayPath)
|
||||
@@ -172,6 +175,7 @@ struct SettingsView: View {
|
||||
cpHash = carplayContents
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
print(error.localizedDescription)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user