All Projects → uber → Ubersignature

uber / Ubersignature

Licence: mit
Provides an iOS view controller allowing a user to draw their signature with their finger in a realistic style.

Projects that are alternatives of or similar to Ubersignature

Open Source Flutter Apps
📱 List of open source Flutter applications
Stars: ✭ 1,086 (-10.47%)
Mutual labels:  ios-app
Rgviperchat
An iOS chat app written following a VIPER architecture and BDD
Stars: ✭ 65 (-94.64%)
Mutual labels:  ios-app
Fridpa
An automated wrapper script for patching iOS applications (IPA files) and work on non-jailbroken device
Stars: ✭ 69 (-94.31%)
Mutual labels:  ios-app
Flutter gank
Flutter版 干货集中营
Stars: ✭ 60 (-95.05%)
Mutual labels:  ios-app
Stashline
A long term personal finance planning timeline app for IOS
Stars: ✭ 61 (-94.97%)
Mutual labels:  ios-app
Online food app
Visit our website for more Mobile and Web applications
Stars: ✭ 68 (-94.39%)
Mutual labels:  ios-app
The Blue Alliance Ios
An iOS app for accessing information about the FIRST Robotics Competition.
Stars: ✭ 52 (-95.71%)
Mutual labels:  ios-app
Drawer Menu Swift
Drawer menu implementation in Swift 4
Stars: ✭ 74 (-93.9%)
Mutual labels:  ios-app
Flutter Tetris
a tetris game powered by flutter. 使用flutter开发俄罗斯方块。
Stars: ✭ 1,109 (-8.57%)
Mutual labels:  ios-app
Rust android ios
Android / iOS app with shared Rust logic
Stars: ✭ 69 (-94.31%)
Mutual labels:  ios-app
Apple Automation
iOS/macOS 自动化,效率玩法探索。
Stars: ✭ 60 (-95.05%)
Mutual labels:  ios-app
Gas Oil Mixture Mobile
Mobile app for calculation of gasoline/oil ratio for 2 stroke engines built with React Native.
Stars: ✭ 61 (-94.97%)
Mutual labels:  ios-app
Booking Management Dashboard
flutter Booking Management Dashboard responsive (web,mobile,tablet)
Stars: ✭ 69 (-94.31%)
Mutual labels:  ios-app
Eventkit
A template conference app, featuring real-time schedule and data changes & running on Realm 🚀
Stars: ✭ 59 (-95.14%)
Mutual labels:  ios-app
Augmentedsolarsystem
An Augmented reality experience to explore planets in our Solar System
Stars: ✭ 69 (-94.31%)
Mutual labels:  ios-app
Space Curiosity
All space related agregator, built with Flutter - Spark your curiosity!
Stars: ✭ 56 (-95.38%)
Mutual labels:  ios-app
Shadowsocksfree
Try Yourself.
Stars: ✭ 65 (-94.64%)
Mutual labels:  ios-app
My Ios
List of applications and tools that make my iOS experience even more amazing
Stars: ✭ 1,202 (-0.91%)
Mutual labels:  ios-app
Ios Apps
Awesome iOS apps
Stars: ✭ 71 (-94.15%)
Mutual labels:  ios-app
Appmon
Documentation:
Stars: ✭ 1,157 (-4.62%)
Mutual labels:  ios-app

Uber Signature

Swift version now available!

Mimicking pen-on-paper signatures with a touch screen presents a difficult set of challenges.

The rate touch events are emitted does not provide enough information to mimick the same smooth line the user made with their finger. Simply drawing straight lines between the touch points will yield an unnatural looking line made of discrete sections - especially when the user is moving their finger fast, as the number of touch events stays constant, providing even fewer points per unit of distance moved.

Touches are also collected on the main thread, so any bottleneck on the main thread can adversely affect the frequency with which touches are collected.

Real pen-on-paper signatures vary in line thickness, related to the speed the pen is moved and how hard/soft it is applied to paper. Emulating this requires the use of a more complex drawing routine invloving calculating shapes rather than a line of set weight simply plotted between the touch points.

With UberSignature, we attempted to engineer a solution that feels responsive and produces realistic looking signatures. The implementation separates responsiblities across multiple classes, making the logic easier to understand and maintain. The core algorithm is also written synchronously so its execution can be easily followed. A wrapping class then encapsulates this and provides it asynchronously.

The package provides a SignatureDrawingViewController that detects the touches and draws a signature-styled line as the user moves their finger. It provides the ability to instantiate with a previous image, get current signature image, reset, and change signature color. It can be presented at any size and resizing the view will update the signature accordingly, allowing it to be used in auto-layout environments with ease.

To use:

Instantiate a SignatureDrawingViewController, optionally with an image that will be the starting signature.

ObjC:

[[UBSignatureDrawingViewController alloc] initWithImage:image];

Swift:

SignatureDrawingViewController(image: image)

The view controller can either be presented directly or added as a child view controller. The view can be positioned using auto-layout or the frame set to any needed size. The backing signature image will resize to fit.

Signature Demo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].