[ios] Fixed designable warning when showing user location
Turn the Shows User Location inspectable into a no-op when running in the designables agent. Otherwise, we complain that the agent lacks Location Services permissions.
This commit is contained in:
committed by
Minh Nguyễn
parent
235210c648
commit
e8b8f5e493
@@ -2999,7 +2999,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
|
||||
|
||||
- (void)setShowsUserLocation:(BOOL)showsUserLocation
|
||||
{
|
||||
if (showsUserLocation == _showsUserLocation) return;
|
||||
if (showsUserLocation == _showsUserLocation || _isTargetingInterfaceBuilder) return;
|
||||
|
||||
_showsUserLocation = showsUserLocation;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user