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
PASTAView
as a subview or set it as type of a view in Interface Builder. -
Implement
TangibleEvent
and assign the object totangibleDelegate
property ofPASTAView
. -
Provide some patterns by calling
whitelist(pattern:identifier:)
4.1. Create
PASTAPattern
withMarkerSnapshot
from scratch, or4.2. disable whitelist by setting
patternWhitelistDisabled
totrue
, 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.