Navigation Menu

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

[SR-1802] Swift enum cases exposed to Objc with lowercase naming #44411

Closed
swift-ci opened this issue Jun 17, 2016 · 2 comments
Closed

[SR-1802] Swift enum cases exposed to Objc with lowercase naming #44411

swift-ci opened this issue Jun 17, 2016 · 2 comments
Labels
compiler The Swift compiler in itself good first issue Good for newcomers improvement PrintAsClang Area → compiler: The PrintAsClang library

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-1802
Radar None
Original Reporter kkoval (JIRA User)
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, PrintAsObjC, StarterBug
Assignee kkoval (JIRA)
Priority Medium

md5: 23bdb72998f4fd08bd4876e7a13f1fe0

Issue Description:

With new lowercase enum naming in Swift, they are exposed to objc with lowercase.
This naming makes it hard to find which part is a name of a type (Event) and which is a enum case (search)

Example:

@objc enum Event: Int {
    case search
}

typedef SWIFT_ENUM(NSInteger, Event) {
    Eventsearch = 0,
};

I feel It would be better if enum cases would be expose to Objc as UpperCase

typedef SWIFT_ENUM(NSInteger, Event) {
    EventSearch = 0,
};
@belkadan
Copy link
Contributor

Good call.

@lilyball
Copy link
Mannequin

lilyball mannequin commented Jul 29, 2016

This was already implemented back in March, and I can confirm that it appears to work correctly with Xcode 8b3.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself good first issue Good for newcomers improvement PrintAsClang Area → compiler: The PrintAsClang library
Projects
None yet
Development

No branches or pull requests

2 participants