Christos Hayward
Christos Hayward

Reputation: 5993

How can I transform an image for Apple Watch?

This question is mentioned in explaining How can I get a [Glance] Interface Controller / blank slate for Apple Watch? , but is a separate basic question.

In iOS, if you have a UIImage, you can create a UIImageView which supports, among other things, rotation, translation, and other transforms. In the Swift that I've seen, you can create a WKInterfaceImage, for instance:

@IBOutlet var foo: WKInterfaceImage!

However, there were no search results matching, for example WKInterfaceImageView.

How can I accomplish the work on an Apple Watch that might be done on an iPhone by getting a UIImageView from an Image? Are old-fashioned UIImageView/UIImages still available? Or is the best available method something like computing an image on the iPhone and dynamically offering it to the watch?

Thanks,

Upvotes: 0

Views: 340

Answers (0)

Related Questions