This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
[ios] Evaluate performance of removing/adding constraints in updateScaleBar #14066
Labels
archived
Archived because of inactivity
iOS
Mapbox Maps SDK for iOS
performance
Speed, stability, CPU usage, memory usage, or power usage
Follow-on to PR #13911
Since the intrinsic content size of the scale may change frequently during a camera "fly to", we should revisit whether it's necessary to call
-installScaleBarConstraints
in updateScaleBar:Since the scale bar constraints are set up with constants:
it shouldn't be necessary to remove and re-add the height and width constraints: instead it should be more performant to update the constraints'
constant
.We should:
/cc @lloydsheng @friedbunny
The text was updated successfully, but these errors were encountered: