Post

Replies

Boosts

Views

Activity

Can't access objective-c method from Swift.
I have an ojb-c method.- (instancetype)initWithInitialFilter:(nullable ArticleFilter *)filter channelProvider:(id)channelProvider offlineContentManager:(OfflineContentManager *)offlineContentManager;The swift interface is generated as such:public convenience init(initialFilter filter: ArticleFilter?, channelProvider: ChannelProviderProtocol, offlineContentManager: OfflineContentManager)The objc-c header in question is listed my bridging header (all are listed). However, when I try to access the above initializer from swift, it's not visible. Compiler says nothing see too see there! There's also no method in autocompletion. Tips, cause I'm flummoxed.
2
0
6.3k
Apr ’22