flashChapterNumber(_:chapterTitle:) Swift documentation has mismatched nullability
Originator: | igeek1 | ||
Number: | rdar://39693485 | Date Originated: | 24-Apr-2018 03:31 PM |
Status: | Resolved | Resolved: | July 5 2018, 10:23 PM |
Product: | Documentation | Product Version: | Xcode 9.3 (9E145) on macOS 10.13.4 (17E199) |
Classification: | Other Bug | Reproducible: | Always |
Summary: The documentation for AVPlayerView’s flashChapterNumber(_:chapterTitle:) method shows the type of the chapterTitle parameter as `String`, but the documentation of the chapterTitle parameter says: “The chapter title. This value is optional and can be nil.” From this, it looks like the property is incorrectly annotated to be nonnull, since the intent was for it to be nullable. Steps to Reproduce: Expected Results: Actual Results: Version: Xcode 9.3 (9E145) on macOS 10.13.4 (17E199) Notes:
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!
message by me
Confirmed in the documentation! I'm not running the beta, but assuming the docs match the code, it's closed as far as I'm concerned.
Apple Developer Relations
Apple Developer Relations
Thanks, we are working on the new information you provided. We appreciate your help!
Comment by me
Apple Developer Relations - June 19 2018, 3:48 PM
We believe this issue has been resolved in the latest macOS 10.14 beta. Please test with the latest beta. If you still have issues, please update your bug report with any relevant logs or information that could help us investigate.
Apple Developer Relations
A solution is under investigation. We will follow up with you again when it is available.
Comment by me
If the code can't be changed, could the documentation be changed, at least for the Swift version of the docs? It's not a big deal; I was just reporting it because I noticed that it was inconsistent.