SnapGuideView

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKSnapGuideView)
open class SnapGuideView : UIView

A SnapGuideView is meant to visualize snapping guides.

  • The snap guide visualization mode.

    Declaration

    Swift

    open var guideMode: SnapGuide
  • The color of the snap guide.

    Declaration

    Swift

    open var guideColor: UIColor
  • The line width of the snap guide.

    Declaration

    Swift

    open var lineWidth: CGFloat
  • The line dash pattern of the snap guide.

    Declaration

    Swift

    open var lineDash: [CGFloat]
  • Whether this snap guide is in the snapped state or not. If this value transitions from false to true the didSnapHandler is executed. isHidden is automatically set to the opposing state of this value.

    Declaration

    Swift

    open var isSnapped: Bool { get set }
  • This closure is executed when isSnapped changes from false to true.

    Declaration

    Swift

    open var didSnapHandler: (() -> Void)?