Reputation: 13887
I'm learning Swift at the moment and I'm hoping to test out some ideas with CMMotionManager
. Specifically I want to graph the output of the magnetometer.
Is this possible with Playgrounds? Ie., can I write code that will be run on the real attached iPhone or iPad (not the simulator), but see graphs and results displayed on the Mac that I am developing on?
Upvotes: 2
Views: 2863
Reputation: 13887
Seems the simple answer is "no".
Quoting a transcript of Swift Playgrounds – WWDC 2014 Session 408:
So anything which requires a device will not be supported with Playgrounds.
I'll leave this question open though. Perhaps there is a tidy way to have some code running on the phone that is sending data to an Xcode playground were I can work with it further.
Upvotes: 1