Closed michaelaflores closed 9 months ago
Hi @michaelaflores , thank you for taking the time to submit an issue. The SDK has no asset logic in it. I just double checked that there is no asset logic and no usage of "Accent Color".
My initial theory is there is some piece of code that is interacting with a flag in an unexpected manner or perhaps a default value is being retrieved while the SDK is starting up. Do you use any feature flags for influencing the behavior of the UI layer?
Did you notice this behavior upon updating to 9.0.2 or is this the first version of the SDK being used in this app? If 9.0.2 is the first version you have used, would mind downgrading to 8.2.0 and seeing if you see the issue on that version as well? You'll have to remove the autoEnvAttributes
parameter when doing this downgrade test since that was added in 9.x.
Thanks!
@michaelaflores , this issue has been inactive for a time and we are closing it. Please leave a comment if you'd like to continue discussing this issue.
Is this a support request? No
Describe the bug I have an application which defines AccentColor in Assets as an orange color. In my SwiftUI app, this causes the default color of buttons to be an orange color rather than blue. In my application init code, if I allow the below line
LDClient.start
to be called, then the buttons are reset to their blue color rather than appearing orange. When the line is commented out, buttons display as the color defined in Assets AccentColor.To reproduce In a SwiftUI app running on iPadOS 16.6, using the above code, and with AccentColor defined in Assets as some non-blue color, run a build on your physical device. Run once with
LDClient.start(config: config, context: context)
commented out, and once with it uncommented, and observe the change of button color.Note this reproduces on iPadOS and iOS when running on those physical devices, not in simulator.
Expected behavior Calling
LDClient.start
should have no effect on application appearance.Logs
SDK version 9.0.2
Language version, developer tools Swift 5.8
OS/platform iOS 16.6, iPadOS 16.6
Additional context After calling![IMG_FC719E09DDC7-1](https://github.com/launchdarkly/ios-client-sdk/assets/11711706/1e1748a3-9cb9-46b8-bb87-6aa24ec1f8d4)
LDClient.start
Without calling![IMG_318FCF70B405-1](https://github.com/launchdarkly/ios-client-sdk/assets/11711706/eb89e38f-c28d-41cd-9525-d268ee0d3f46)
LDClient.start