Questions tagged [wkimage]

The basic image handling class on watchOS.It is Available in watchOS 2.0 and later.

A WKImage object is a wrapper for images you use with a picker interface. The methods of this class let you create your image from any number of image sources.

To create instances of this class, use one of the defined creation methods. Choose the method that best suits the image data you have. After creating the object, you can use associate it with a WKPickerItem object and use it in your picker interface.

3 questions
2
votes
1 answer

WKImage to Data always returns nil

I am trying to convert WKImage to Data(NSData) but always getting nil. let image = WKImage(imageName: "sample") print("Image = \(image)") let imageData = image.imageData print("Image Data = \(imageData)") Below is out put Image =
Anand Suthar
  • 3,678
  • 2
  • 30
  • 52
1
vote
2 answers

WatchOS 2 - Transferring image sequences for animation

I'm having trouble converting my app from WatchOS 1 to WatchOS2. I'm programmatically creating a sequence of images on the iPhone for the Watch to play. I'm putting them in a zip file (using SSZipArchive) in iOS and using transferFile() to send it…
ScottyB
  • 2,167
  • 1
  • 30
  • 46
1
vote
1 answer

WKImage always return nil

Access assets image will always return nil, below is my code and assets catalog screen shot. let image = WKImage(imageName: "sample") print(image.image) This will always prints nil. Update: Updated screen shot
user2021205