Page Index ignored when reloading root page interface controllers

Originator:toto.tvalavadze
Number:rdar://33773667 Date Originated:08-Aug-2017 15:50
Status:Open Resolved:
Product:watchOS + SDK Product Version:4.0 (15R5345f)
Classification:Security Reproducible:Always
 
Summary:
When reloadRootPageControllers(withNames:contexts:orientation:pageIndex:) is called, `pageIndex` is ignored and interface controller at index of 0 is displayed.

Steps to Reproduce:
1. Add several WKInterfaceControllers into array. 
2. Call reloadRootPageControllers(withNames:contexts:orientation:pageIndex:) with any pageIndex other than 0.

Expected Results:
Page controller should reload and present instance of WKInterfaceController at index of `pageIndex` for provided array in `withNames:[String]`.

Actual Results:
Page controller reloads with instance of WKInterfaceController at index 0. Event if pageIndex is not 0.

Version:
4.0 (15R5345f)

Notes:
Above was working in all previous watchOS 4.0 betas.

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!