3

I have been playing around with SwiftUI since the beta launched and was curious if anyone has figured out way to design for CarPlay in Xcode using SwiftUI? It doesn't seem to be available in Apple's list of devices and so far I haven't been able to find a way to enable it as a secondary screen.

Currently using Xcode 11 Beta 5. Tried seeing if CarPlay could be added as a .previewDevice, but that is specifically for hardware.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
MisterTea
  • 35
  • 7

2 Answers2

6

You don't need MFi for CarPlay, you need CarPlay entitlement. Still not sure about SwiftUI and CarPlay. I am sure SwiftUI will not support some specific CarPlay categories such as Media Playback and Messaging & VoIP, but maybe with Navigation or Automaker.

ossamacpp
  • 656
  • 5
  • 11
-3

You won't be able to see CarPlay in Xcode because it's only for people who are enrolled with Apple MFi Program. This gives you access to the tools, documentation, technical specs and the license itself to develop for CarPlay. Please see here for the MFI program and here for the MFI FAQ.

A very good write up on StackOverflow can also be found here.

It is also currently unknown if CarPlay can be developed with SwiftuI because people who develop CarPlay apps need to sign a NDA. But I think Apple will continue to push SwiftUI so I don't see why it's not possible

gotnull
  • 26,454
  • 22
  • 137
  • 203
yawnobleix
  • 1,204
  • 10
  • 21