Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

742274300: Xcode should offer "macOS" as autocompletion for operating system #21316

Open
openradar-mirror opened this issue Nov 2, 2019 · 0 comments

Comments

@openradar-mirror
Copy link

Description

[The actual item number in Feedback Assistant is FB7422743]

In SE-0106 (implemented in Swift 3), the name "macOS" was added as an alias for "OSX" in contexts where an operating system name should appear, such as "#if os()" and "if #available()". However, Xcode does not offer "macOS" as an autocompletion value in these contexts. If the user types "Mac", Xcode 11 offers "macCatalyst" as an autocompletion (Xcode 10.3 offers "iosMac").

Apparently the Swift compiler will continue to accept "OSX" for backward compatibility, but after four years it would seem reasonable for Xcode to offer "macOS" as the preferred name. (Whether Xcode should continue offering "OSX" is up to Apple.)

Product Version: 11.2 (11B52)
Created: 2019-11-01T23:08:56.104900
Originated: 2018-11-01T00:00:00
Open Radar Link: http://www.openradar.me/742274300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant