|
|
@ -66,9 +66,14 @@ NSString *const CLYesWithExclamation = @"Yes!"; |
|
|
|
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context |
|
|
|
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ([keyPath isEqualToString:CLDisplayFutureSliderKey]) { |
|
|
|
if ([keyPath isEqualToString:CLDisplayFutureSliderKey]) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ([change[@"new"] isKindOfClass:[NSNumber class]]) |
|
|
|
|
|
|
|
{ |
|
|
|
self.futureSlider.hidden = [change[@"new"] isEqualToNumber:@(1)] ? YES : NO; |
|
|
|
self.futureSlider.hidden = [change[@"new"] isEqualToNumber:@(1)] ? YES : NO; |
|
|
|
[Answers logCustomEventWithName:@"Is Future Slider Displayed" customAttributes:@{@"Display Value" : self.futureSlider.isHidden ? @"NO" : @"YES"}]; |
|
|
|
[Answers logCustomEventWithName:@"Is Future Slider Displayed" customAttributes:@{@"Display Value" : self.futureSlider.isHidden ? @"NO" : @"YES"}]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
else if([keyPath isEqualToString:CLUserFontSizePreference]) |
|
|
|
else if([keyPath isEqualToString:CLUserFontSizePreference]) |
|
|
|
{ |
|
|
|
{ |
|
|
|
NSNumber *userFontSize = [[NSUserDefaults standardUserDefaults] objectForKey:CLUserFontSizePreference]; |
|
|
|
NSNumber *userFontSize = [[NSUserDefaults standardUserDefaults] objectForKey:CLUserFontSizePreference]; |
|
|
|