CXDitheredGradientView 0.0.3

CXDitheredGradientView 0.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2019

Maintained by Daniel Clelland.



  • By
  • Daniel Clelland

CXDitheredGradientView

Ultra-basic UIView subclass. Draws using CGGradient, which supports dithering to avoid banding artefacts.

CXDitheredGradientView *gradientView = [[CXDitheredGradientView alloc] initWithFrame:self.view.bounds];

gradientView.colors = @[[UIColor redColor], [UIColor whiteColor], [UIColor blueColor]];

[self.view addSubview:gradientView];