Closed sammcewan closed 11 months ago
This is now in RC and the issue remains.
Also seeing these errors occuring in a SwiftUI app nowhere near the places where the Sumup SDK is used. Just switching tabs in a TabView triggers around 10 such log warnings and slows down the app significantly. This is not triggered by application code:
Also happening with the latest version 4.1.1 of the SDK.
Can we have an update on this? We are also facing the same issue. We have the console log flooded by this message.
Thanks
Having the same problem.
Still not fixed in release 4.2 of the SDK 😤
Same problem, please fix this
Also getting this issue, and it's worse with SwiftUI views for some reason.
This is really annoying and causes performance problems in general even if the SDK is not used; it seems the SumUpSDK adds a method colorForStyle:
in UIColor
with an extension and since the latest iOS release this seems to be used even outside of the SumUp views...
I found a workaround to make at least the log messages go away, you can initialize the SDK with an empty SDK key, this seems to set up the style sheet it is complaining about - unfortunately you can set the API key only once...
SumUpSDK.setup(withAPIKey: apiKey ?? "")
Never thought that this would be necessary, but enough is enough. Here is a gist to silence this log message while we wait for a fix:
https://gist.github.com/cwimberger/9089354f12e7f60fea201a65e99a86fa
Very early heads up that the SDK is throwing this log to our console when running Xcode 13 beta / iOS 15.