WatchKit: bottom of notification gets cut off with the right layout/text combination

Originator:robotspacer
Number:rdar://20789958 Date Originated:02-May-2015 03:53 AM
Status:Open Resolved:
Product:iOS SDK Product Version:8.3 (12F70)
Classification:UI/Usability Reproducible:Always
 
Summary:
With the right combination of layout and text, WatchKit seems to miscalculate the height of a notification. The bottom of the notification gets cut off, resulting in a missing word and square corners.

Steps to Reproduce:
1. Run the attached sample app on an iPhone and allow notifications.
2. Run the Apple Watch app on a 42mm watch. It will ask the parent app to display a local notification.

Expected Results:
The notification text should read:
Item name
Preparing to ship
Delivered by Tuesday

Actual Results:
The notification text reads:
Item name
Preparing to ship
Delivered by

(The word Tuesday does not appear, and the box around the text is square at the bottom instead of rounded)

Version:
8.3 (12F70)

Notes:
A screenshot is also included in the attachment showing the problem.

If the last line is "Delivered by Monday" or "Delivered by Thursday" everything displays correctly. With "Monday" it all fits on one line. With "Thursday" it correctly adds another line of text.

I can't seem to find a good workaround for the problem. Adjusting the layout might get "Delivered by Tuesday" to display correctly but based on my testing that just means some other text is going to get cut off.

Configuration:
iPhone 6, Apple Watch 42mm

Attachments:
'WatchLabel.zip' was successfully uploaded.

Comments

Workaround

As discussed here https://twitter.com/robotspacer/status/594526292487196672 and suggested by Troy Gaul, you can work around this issue by giving your label(s) a fixed width. Just make sure to give a separate width for both 38mm and 42mm. I used insets of 7 on the notification, then a label width of 120 for 38mm and 140 for 42mm.

By robotspacer at May 2, 2015, 5:21 p.m. (reply...)

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!