Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
3.0.0.tar.gz | 2019-07-02 | 80.8 kB | |
3.0.0.zip | 2019-07-02 | 98.7 kB | |
README.md | 2019-07-02 | 970 Bytes | |
Totals: 3 Items | 180.4 kB | 0 |
⚠️ Breaking Changes
API Endpoints return SvrfRequest
The API endpointssearch
, getTrending
, and getMedia
calls now return a SvrfRequest
handle that can be used to manage or cancel the request.
generateFaceFilter now returns SvrfFaceFilter
This gives you additional features:
- Ability to manage filter animations via
looping
andanimating
booleans. - An optional scene overlay (see below).
To retrieve the SCNNode
as before, use the node property of the returned SvrfFaceFilter
Viewport Binding Support
The SDK now supports viewport bindings! To support it requires a client code change:
:::swift
// Add the face filter as a child node
if let faceFilterNode = faceFilter?.node {
rootNode.addChildNode(faceFilterNode)
}
// Add the face filter's overlay
sceneView.overlaySKScene = faceFilter?.sceneOverlay
sceneView.overlaySKScene?.size = sceneView.bounds.size