SessionFilterSphereRefraction

open class SessionFilterSphereRefraction : SessionFilter

Original Image Filtered Image

Applying the filter to an image:

let filter = SessionFilterSphereRefraction()
filter.normalizedIntensity = 100
session.image!.primaryFilter = filter

Applying the filter to a whole video:

let filter = SessionFilterSphereRefraction()
filter.normalizedIntensity = 100
session.video!.primaryFilter = filter

Applying the filter to the first segment of a video:

let filter = SessionFilterSphereRefraction()
filter.normalizedIntensity = 100
session.video!.videoSegments.first!.filters = [filter]

For more information about filters visit the super class SessionFilter.