Exposing swift classes and members to Objective-C.
Changes:
Adding @objcMembers to public classes.
Make WIdentify an internal class as it can only be accessed from WTracker
Expected Behavior:
Public methods can be accessed in an Objective-C code.
WIdentify is not available for public access.
How To Verify it:
Trying to use WIdentify directly, there should be a compile error of "cannot find WIdentify" or "undeclared identifier WIdentify"
Trying to call API in Objective-C, you can directly add the following code in AppDelegate.m in AIQUA project. Remember to import the headers in the file:
Purpose:
Exposing swift classes and members to Objective-C.
Changes:
@objcMembers
to public classes.WIdentify
an internal class as it can only be accessed fromWTracker
Expected Behavior:
WIdentify
is not available for public access.How To Verify it:
WIdentify
directly, there should be a compile error of "cannot find WIdentify" or "undeclared identifier WIdentify"AppDelegate.m
inAIQUA
project. Remember to import the headers in the file: