Problem:
The declared static let sharedInstance is not accessible from Objective-C code when building the main app target.
Code:
@objc public protocol ManagedObjectContextProvider {
var context: NSManagedObjectContext { get }
…
I've been tasked with splitting out the model layer of an existing app into a separate framework. I'm trying accomplish this using cocoapods to make a pod which I'll import back into the main app.
The issue I'm having is the app I'm splitting the…
I want to declare an Objective-C method with a custom Swift class as one of it's arguments, like this:
+ (void)doCalculationsWithACustomSwiftObject:(CustomSwiftClass *)swiftObject andADictionanary:(NSDictionary *)ordinaryDictionary;
The aim is to…