[ios] Make user heading indicator property IBInspectable

Rename it to `showsHeading` to fit in the tiny label column of the utilities panel.
This commit is contained in:
Jason Wray
2017-09-01 15:10:26 -04:00
parent e1ff826d20
commit 63250baa4e
2 changed files with 16 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic) IBInspectable BOOL allowsRotating;
@property (nonatomic) IBInspectable BOOL allowsTilting;
@property (nonatomic) IBInspectable BOOL showsUserLocation;
@property (nonatomic) IBInspectable BOOL showsHeading;
@end

View File

@@ -5775,4 +5775,19 @@ private:
self.pitchEnabled = allowsTilting;
}
+ (NS_SET_OF(NSString *) *)keyPathsForValuesAffectingShowsHeading
{
return [NSSet setWithObject:@"showsUserHeadingIndicator"];
}
- (BOOL)showsHeading
{
return self.showsUserHeadingIndicator;
}
- (void)setShowsHeading:(BOOL)showsHeading
{
self.showsUserHeadingIndicator = showsHeading;
}
@end