SnapscreenARSnapViewController

@interface SnapscreenARSnapViewController : SnapscreenSnapViewController

SnapscreenARSnapViewController offers the snapping logic from Snapscreen to your application and enrich it via AR-like features. Instantiate via SnapscreenKit and then display it in your application. The recommended way to present the view controller is to present it as a modal view that covers the whole screen.

Use the AR delegate callbacks to get information about the snapping process. In any case you are responsible to dismiss the view controller again.

To customize the appearance of the viewfinder and zoom level indicator set the tintColor accordingly. To customize the color of the navigation bar and it’s bar items use the default UIAppearance API calls.

The snap button is automatically hidden in this view controller since AR only makes use of autosnapping.

Please note that the standard SnapscreenSnapViewControllerDelegate (which is accessible via the view controller’s delegate property) is not used in this case, but all relevant callbacks occur via the arDelegate.

  • The AR delegate of the view controller. Never should be nil, because the delegate is responsible for dismissing the view.

    Declaration

    Objective-C

    @property (atomic, weak, readwrite, nullable)
        id<SnapscreenARSnapViewControllerDelegate>
            arDelegate;

    Swift

    weak var arDelegate: SnapscreenARSnapViewControllerDelegate? { get set }
  • A view covering the entire screen that can be used for drawing custom content

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) int *arDrawingView;

    Swift

    var arDrawingView: UnsafeMutablePointer<Int32> { get }
  • The view finder mode - defaults to SnapscreenARViewfinderModeDefaultSquare

    Declaration

    Objective-C

    @property (nonatomic, readonly) SnapscreenARViewFinderMode viewFinderMode;

    Swift

    var viewFinderMode: Int32 { get }