Pitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
Hi all, In a follow up to SE-0384, we would like to propose another improvement to Swift - Objective-C interop. Specifically, we would like to improve upon the ClangImporter's ability to tie an @class...
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
I've run into this a number of times with my own projects, seems like a relatively straightforward addition to SE-0384. Thanks for working on this. Read full topic
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
We discussed this a bit in the language workgroup and mentioned it in some offline conversations, but I wanted to make sure our thoughts/concerns made it into this thread as well. There are two main...
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
For issue #1, wouldn't a full import be required in order to do anything with the forward declared type except pass through a class with a matching name, and thus these Swift modules aren't depending...
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
Hey all, I am bumping this thread as I think that I am facing the problem which should have been fixed as part of this proposal but for a custom framework: No member in framework target: Swift class...
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
This proposal was never implemented for the reasons explained by @ allevato above. The entire feature isn't on by default though, if you want to try it, you need to pass -enable-upcoming-feature...
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
@NuriAmari I see. Is there any work around through which I can solve my use case? Read full topic
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
Can't you just move #import <UtilitiesFramework/UtilitiesFramework-Swift.h> to Utilities.h instead of Utilities.m. Why do you need to forward declare the Swift type. I don't think you are...
View ArticlePitch: Resolve Objective-C Forward Declarations to @objc Swift Definitions
@NuriAmari as per Importing Swift into Objective-C | Apple Developer Documentation : When declarations in an Objective-C header file refer to a Swift class or protocol that comes from the same target,...
View Article