Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keith/ksdebuglayer

A CALayer subclass for debugging animations
https://github.com/keith/ksdebuglayer

Last synced: 3 days ago
JSON representation

A CALayer subclass for debugging animations

Awesome Lists containing this project

README

        

# KSDebugLayer

[![Build Status](https://travis-ci.org/keith/KSDebugLayer.svg?branch=master)](https://travis-ci.org/keith/KSDebugLayer)

A `CALayer` subclass to visualize the `anchorPoint` and `bounds` of
the layer. Specifically useful for handling off-center animations.

![](https://raw.githubusercontent.com/Keithbsmiley/KSDebugLayer/master/Example/ExampleTests/screenshot.png)

## Example iOS Usage

In your `UIView` subclass while debugging:

```objective-c
+ (Class)layerClass
{
return [KSDebugLayer class];
}
```

## Example OS X Usage

On the desired `NSView` while debugging:

```objective-c
view.layer = [KSDebugLayer layer];
[view updateLayer];
```

### Resources

-
-
-