A Swift SDK to detect passive Tangibles on capacitive screens.
To run the example project, clone the repo, and run pod install from the Example directory first.
PASTA is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'PASTA'To use PASTA in your project:
-
import PASTA -
Add an instance of
PASTAViewas a subview or set it as type of a view in Interface Builder. -
Implement
TangibleEventand assign the object totangibleDelegateproperty ofPASTAView. -
Provide some patterns by calling
whitelist(pattern:identifier:)4.1. Create
PASTAPatternwithMarkerSnapshotfrom scratch, or4.2. disable whitelist by setting
patternWhitelistDisabledtotrue, place your desired Tangibles on the screen, whitelist the patterns, and enable whitelist again.
A design and instructions on how to build a tangible are available at Thingiverse
Aaron Krämer
PASTA is available under the MIT license. See the LICENSE file for more info.