Please expose protocols to Objective C
Closed this issue ยท 2 comments
I am not of a ObjC\Swift guy to PR this myself ๐
Basically though we just need the @objc added to some of the declarations like OptionsBuildable and Style (likely others) to be consumable by NativeScript as there's no Swift->Javascript bridge.
Issue is explained in detail here:
NativeScript/ios-jsc#769 (comment)
Also it's being reported on my repo here:
sitefinitysteve/nativescript-auth0#17 (comment)
Auth0 Team,
Is this going to be possible? I am starting a large project based on Nativescript and planned to use the Auth0 Lock component.
Thanks.
@sitefinitysteve not all Swift functionality can simply be exposed with @objc, sometimes it's fundamentally not compatible.
For exposing additional functionality for ObjC we recommend creating a Hybrid Swift/ObjC project.
Source - Lock 2.x Hybrid