Closed mokagio closed 4 months ago
This statusBarFrame
is used to track status bar height. But is that information really useful to us? If it's not, can we just delete it?
There is also another similar deprecated API usage: statusBarOrientation
. It's used to track device orientation. I think this information can be useful. But I think it's more appropriate to use UIDevice.orientation
instead.
Another problem: both of these APIs can only accessed on the main thread. This means that every Tracks call from a non-main thread is making a blocking call to the main thread to fetch the status bar frame.
If nobody's using this information, I'd agree with removing it.
The 3.1.0 CI deployment failed because of deprecation warnings:
We could work around this by passing
--allow-warnings
to the pod validation command via our CI plugin, but I think it's best we remain strict in our validation and address this deprecation. It's deprecated for a reason, after all.It should be straightforward to update the code to use the new recommended syntax (see StackOverflow, for example).