Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keefo/CATweaker
A helper tool and an Xcode plugin for creating beautiful CAMediaTimingFunction curve
https://github.com/keefo/CATweaker
Last synced: 4 days ago
JSON representation
A helper tool and an Xcode plugin for creating beautiful CAMediaTimingFunction curve
- Host: GitHub
- URL: https://github.com/keefo/CATweaker
- Owner: keefo
- Created: 2015-03-22T02:26:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-24T05:10:58.000Z (over 8 years ago)
- Last Synced: 2024-08-03T14:08:06.460Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 7.97 MB
- Stars: 691
- Watchers: 19
- Forks: 54
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ios-cn - 官网
README
# CATweaker [![Build Status](https://travis-ci.org/keefo/CATweaker.svg)](https://travis-ci.org/keefo/CATweaker)
## Overview
A helper tool for creating beautiful CAMediaTimingFunction curve.
![alt Window](./poster.jpg)
CATweaker comes with an Xcode plugin:
# CATweakerSense for Xcode
## Overview
CATweakerSense is an Xcode plugin that makes working with `CAMediaTimingFunction` more visual.
You might use [ColorSense](https://github.com/omz/ColorSense-for-Xcode) before. It let you pick up a color right from Xcode caret.
CATweakerSense is like ColorSense, but it lets you pick a CAMediaTimingFunction curve. When you put the caret on one of your CAMediaTimingFunction, it automatically shows the actual time curve as an overlay, and you can even adjust it on-the-fly with the curve adjuster.
The plugin also adds some items to the _Edit_ menu to enable and to disable CATweakerSense temporarily. These menu items have no keyboard shortcuts by default, but you can set them via the system's keyboard preferences (Xcode's own preferences won't show them).
![alt Xcode Plugin](./plugin1.png)
![alt Xcode Plugin](./plugin2.png)
## Installation
Install via [Alcatraz](http://alcatraz.io).
Or
Simply build the Xcode project and restart Xcode. The plugin will automatically be installed in `~/Library/Application Support/Developer/Shared/Xcode/Plug-ins`. To uninstall, just remove the plugin from there (and restart Xcode).
If you get a "Permission Denied" error while building, please see [this issue](https://github.com/omz/ColorSense-for-Xcode/issues/1).
This is tested on:
* OS X 10.9.2 with Xcode 6.2
* OS X 10.10.3 with Xcode 6.2
* OS X 10.11 with Xcode 7.0.1## Limitations
* It only works for constant point value, something like `[CAMediaTimingFunction functionWithControlPoints: abc/def : 0.1 : 0.15 : 0.9];` won't work.
* It only works for Objective-C code. Swift support is in todo list.## Next move
I am planing to bring keyFrame animation into this plugin. So one can create more complex animation like "spring", "decay", "along path" through the popover adjuster. If you have some great ideas, I am more than happy to hear from you.
Swift language support.## Credits
This work is derived from the awesome [ColorSense](https://github.com/omz/ColorSense-for-Xcode) plugin of Ole Zorn([@olemoritz](http://twitter.com/olemoritz)). Thanks Ole!
## Author
**Xu Lian**
I'm a Mac and iOS developer, the founder of [Beyondcow](https://www.beyondcow.com), follow me on Twitter or Github.
-
-
-## License
CATweaker & CATweakerSense is published under MIT License
Copyright (c) 2015 Xu Lian (@lianxu)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.