WatchKit Image in Group with Height Relative to Container Is Too Big

Originator:sethfri
Number:rdar://19635332 Date Originated:01/28/2015
Status:Open Resolved:No
Product:Developer Tools Product Version:Xcode 6.2 beta 4
Classification:UI/Usability Reproducible:Always
 
Summary:
When putting a WKInterfaceImage inside of a WKInterfaceGroup in a storyboard, one can set the image height to Relative to Container and the group height to Size to Fit Content. This way, you can load an image from the network, resize the group at runtime to fit the image (setting a max height of 123pt, for instance, if the image is too big), and have everything work correctly.

However, the way that this is represented in storyboard is confusing. It works at runtime, but visually, the image ends up being enormous, taking up the majority of the Watch face.

Steps to Reproduce:
1. Create a group in a storyboard
2. Set the group's width to Relative to Container and the height to Size to Fit Content
3. Put an image inside the group
4. Set the image's width and height to Relative to Container
5. The image takes up the majority of the Watch face

Expected Results:
Since there's no content, the size of the group and image should be very small until an image is actually added and the group dynamically resized at runtime with setHeight and setWidth.

Actual Results:
The image in the storyboard appears to be huge, even though everything works at runtime.

Version:
Xcode 6.2 beta 4, OS X 10.10.1

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!