Skip to content

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

@swift-ci

Description

@swift-ci
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,
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions