Latest 1.0.0
Homepage https://github.com/inamiy/YISwipeShiftCaret
License Beerware If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
Platforms ios 5.0, requires ARC
Dependencies JRSwizzle
Frameworks QuartzCore
Authors

YISwipeShiftCaret 1.0.0

Swipe-to-shift text input caret for iOS (no private APIs)

ScreenShot1

Above screenshot is from WordBook App using YIPopupTextView.

This project is based on this commit.

How to use

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // add swipe-shift-caret gestures to all of UITextField/UITextView
    [YISwipeShiftCaret install];

    //
    // or, you can implement gestures manually as follows, adding to non-textInput (wider parent) view:
    //
    // YISwipeShiftCaretGestureRecognizer* gesture = [[YISwipeShiftCaretGestureRecognizer alloc] initWithTextInput:self.textField];
    // [self.window addGestureRecognizer:gesture];

    return YES;
}

Acknowledgement

Main idea of this project is from r-plus/SwipeShiftCaret.

License

YISwipeShiftCaret is available under the Beerware license.

If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

Latest podspec

{
    "name": "YISwipeShiftCaret",
    "version": "1.0.0",
    "license": {
        "type": "Beerware",
        "text": "If we meet some day, and you think this stuff is worth it, you can buy me a beer in return."
    },
    "homepage": "https://github.com/inamiy/YISwipeShiftCaret",
    "authors": {
        "Yasuhiro Inami": "[email protected]"
    },
    "summary": "Swipe-to-shift text input caret for iOS (no private APIs).",
    "screenshots": [
        "https://raw.github.com/inamiy/YISwipeShiftCaret/master/Screenshots/screenshot1.png"
    ],
    "source": {
        "git": "https://github.com/inamiy/YISwipeShiftCaret.git",
        "tag": "1.0.0"
    },
    "source_files": "Classes/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "5.0"
    },
    "frameworks": "QuartzCore",
    "dependencies": {
        "JRSwizzle": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This