'Can Core Data be used from within a Swift Playground?

I'm just beginning with Swift and was wondering if Playgrounds has access to Core Data. If so, it would be very handy to pre-populate a DB before placing it on an iOS project.



Solution 1:[1]

In an iOS playground you can successfully import CoreData and then invoke functions defined in the CoreData interfaces.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 GoZoner