Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
NCVibrantStyling - iPhone Development Wiki

NCVibrantStyling

From iPhone Development Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

NCVibrantStyling is used to provide vibrancy parameters to be used for when applying a vibrancy effect to some part of the Noitfications UI. It mainly utilizes CAFilters, color, and alpha to achieve the desired effect. It has many subclasses for different styles of vibrancy.

Source Code

@implementation NCVibrantStyling
- (UIColor *)_burnColor {
	return (UIColor *)[self valueForKey:@"_burnColor"];
}
- (UIColor *)_darkenColor {
	return (UIColor *)[self valueForKey:@"_darkenColor"];
}
- (BOOL)_inputReversed {
	return NO;
}
- (_UIVisualEffectLayerConfig *)_layerConfig {
	_UIVisualEffectTintLayerConfig *layerConfig;
	layerConfig = [_UIVisualEffectTintLayerConfig layerWithTintColor:[self color]
														  filterType:[self blendMode]];
	return layerConfig;
}
- (CGFloat)alpha {
	return self.alpha;
}
- (NSString *)blendMode {
	return (NSString *)[self valueForKey:@"_blendMode"];
}
- (UIColor *)color {
	return (UIColor *)[self valueForKey:@"_color"];
}
- (CAFilter *)composedFilter {
	return (CAFilter *)[self valueForKey:@"_composedFilter"];
}
- (long long)style {
	return 0;
}
@end