How can I change size of WKInterfaceImage object? Official documentation doesn't provide any way to do this simple step.
Asked
Active
Viewed 1,091 times
1 Answers
1
The UIImage
you provide to a WKInterfaceImage
should already have the desired size. If it doesn't, resize it on the iPhone before sending it to the watch.
If you want to change the size anyway, call setWidth(_:)
and setHeight(_:)
. This will also change the scaling mode of your image to "scale to fill".

Aaron Brager
- 65,323
- 19
- 161
- 287
-
I want to change frame of the container for image. – Dmitry Apr 05 '15 at 19:55
-
1Call `setWidth(_:)` and `setHeight(_:)`, but this is usually not optimal. – Aaron Brager Apr 05 '15 at 19:59