corvino / LayerExplorer

An OS X app for visualizing and exploring CALayer geometry.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Layer Explorer

An OS X app for visualizing and exploring CALayer geometry.

An inspector sidebar show and allows editing of CALayer geometry properties, and changes are animated.

The layer's bounds is visualized with labeled hashed for the coordinate system, allowing bounds changes to be visualized.

The frame is outlined, showing how the bounds and transform translate to the superlayer; and the anchorPoint is shown with a dot.

iOS Notes

The layer's origin is different on OS X than on iOS. OS X has the origin at the bottom left, while iOS has it at the top left.

Screenshot

Screenshot

ToDo List and Brainstorming

  • Turn inspector sidebar into verticle panes, like in Xcode.
  • Show editing history; add undo and replay.
  • Add tools: resizing by dragging frame, scroll canvas, etc.
  • Add buttons for finding the origin and finding the layer object, as they can get lost when scrolling the canvas. Maybe a reset button as well.
  • Add multiple object/layer support. Maybe?
  • Add support for flipped coordinate system.

About

An OS X app for visualizing and exploring CALayer geometry.


Languages

Language:Swift 100.0%