NSURLResponse.suggestedFilename returns String? in Swift, but promises String
| Originator: | robnapier | ||
| Number: | rdar://21782079 | Date Originated: | 11-Jul-2015 01:17 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Swift 2b3 |
| Classification: | Other Bug | Reproducible: | Not Applicable |
The documentation for NSURLResponse.suggestedFilename indicates: “Accessing this property always returns a valid filename…” It further promises to return “unknown” as a last resort. However, the function returns String?. It should return String.
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!
Duped as 21807284