launchdarkly / ios-client-sdk

LaunchDarkly Client-side SDK for iOS (Swift and Obj-C)
https://docs.launchdarkly.com/sdk/client-side/ios
Other
70 stars 84 forks source link

Cannot access ldUser from LDClient #159

Closed joehsieh closed 5 years ago

joehsieh commented 5 years ago

I cannot access ldUser from LDClient anymore since 2.14.0. I think that's because #import <Darkly/LDUserModel.h> is not in Darkly.h anymore.

arun251 commented 5 years ago

Hi @joehsieh -- that is correct. ldUser and LDUserModel were never intended to be exposed to SDK consumers. We made this change to make it more clear which classes/methods/properties were intended to be private. You can access the equivalent of ldUser with [[LDClient sharedInstance] currentUserBuilder].