SBSDKFinderLayer

@interface SBSDKFinderLayer : CAShapeLayer

A layer class to display a view finder with colored background and transparent cutout with the given aspect ratio. To change the color just set the layers backgroundColor property.

  • The receivers delegate.

    Declaration

    Objective-C

    @property (readwrite, nonatomic)
        id<SBSDKFinderLayerDelegate> _Nullable finderDelegate;

    Swift

    weak var finderDelegate: SBSDKFinderLayerDelegate? { get set }
  • The aspect ratio of the viewport (cutout), if set to -1, no cutout is drawn. Defaults to -1.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) double displayedAspectRatio;

    Swift

    var displayedAspectRatio: Double { get set }
  • The current rect of the finders viewport in local coordinate system.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGRect finderRect;

    Swift

    var finderRect: CGRect { get }
  • The color of the receivers border line. Can be nil.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull lineColor;

    Swift

    var lineColor: UIColor { get set }