Latest 0.1.0
License MIT
Platforms ios 7.0, requires ARC
Dependencies Masonry, ObjectiveSugar

Basic UIView overlay (for tutorials etc.). Inserts itself under all other subviews and uses drawRect: to cover the canvas with a colour and then cut out a CGRect.

✓ UIView category convenience methods

self.view.overlay = [[CXOverlay alloc] init];
self.view.overlay.cutout = CGRectMake(24.0f, 24.0f, 44.0f, 44.0f);
self.view.overlay.backgroundColor = [UIColor orangeColor];
self.view.overlay = nil;

✓ Supports animation with a crossfade effect.

[self.view.overlay setCutout:CGRectMake(24.0f, 48.0f, 44.0f, 44.0f) withDuration:1.0];

Full API:


@property (nonatomic) CGRect cutout;

- (instancetype)initWithCutout:(CGRect)cutout;

- (void)setCutout:(CGRect)cutout withDuration:(NSTimeInterval)duration;
- (void)setCutout:(CGRect)cutout withDuration:(NSTimeInterval)duration andDelay:(NSTimeInterval)delay;
- (void)setCutout:(CGRect)cutout withDuration:(NSTimeInterval)duration andDelay:(NSTimeInterval)delay andCompletion:(void (^)(BOOL finished))completion;

UIView (CXOverlay)

@property (readwrite) CXOverlay *overlay;

Latest podspec

    "name": "CXOverlay",
    "version": "0.1.0",
    "summary": "Basic UIView overlay (for tutorials etc.)",
    "homepage": "",
    "license": {
        "type": "MIT"
    "authors": {
        "Daniel Clelland": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "7.0"
    "ios": {
        "source_files": "CXOverlay/*.{h,m}"
    "requires_arc": true,
    "dependencies": {
        "Masonry": [],
        "ObjectiveSugar": []

Pin It on Pinterest

Share This