Skip to content

Provide tools for accessing Swift-only APIs #563

Open
@freakboy3742

Description

@freakboy3742

What is the problem or limitation you are having?

Rubicon ObjC is great for accessing Objective C classes. Objective C code (AIUI, anything subclassing NSObject) is also transparently visible to the Swift runtime.

However, Apple is clearly making a transition to Swift in preference to Objective C. UIKit (on iOS) and AppKit on (macOS) both started as Objective C, and so all the major classes (even newly added ones) seem to retain Objective C access; and all documentation for those classes has both Swift and Objective C flavours.

Newer frameworks, such as SwiftUI (a replacement for UIKit and AppKit, and required for use on watchOS), and MusicKit (used to access Apple Music), appear to be published as "Swift Only", with no Objective C examples.

Describe the solution you'd like

This may not even be possible - or it may require a "Rubicon Swift" project to provide an alternate path into the Swift runtime.

If it is possible, Rubicon ObjC needs documentation for how it can be acheived, and/or any assistive tools (such as an analog of ObjCClass?) that are needed.

If it isn't possible, the limitation should still be documented.

Describe alternatives you've considered

There really isn't one. Swift is becoming an essential part of the Apple ecosystem; we need a solution for this.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions