https://github.com/keith/ksdebuglayer
A CALayer subclass for debugging animations
https://github.com/keith/ksdebuglayer
Last synced: 20 days ago
JSON representation
A CALayer subclass for debugging animations
- Host: GitHub
- URL: https://github.com/keith/ksdebuglayer
- Owner: keith
- License: mit
- Created: 2015-01-06T00:50:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-19T14:27:47.000Z (about 10 years ago)
- Last Synced: 2025-01-22T02:52:37.148Z (5 months ago)
- Language: Objective-C
- Homepage:
- Size: 277 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KSDebugLayer
[](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.
## 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
-
-
-