I have a class that has a CKAsset (image file) that pulls data from CloudKit. However, I can't figure out how to initialize the CKAsset. I don't have the data at the time of initialization. The class has strings as well, but I can use "" to initialize them. What can be used to initialize a CKAsset?
Here is my class...
class Locations: NSObject, MKAnnotation {
var title: String?
var subtitle: String?
var coordinate: CLLocationCoordinate2D
var story: String?
var image: CKAsset
override init()
{
self.title = "Test Title"
self.subtitle = "Test Subtitle"
self.coordinate = CLLocationCoordinate2D.init()
self.story = ""
self.image = <- How do I init the CKAsset before I have the data?
}
}