SnapGuideView

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

A SnapGuideView is meant to visualize snapping guides.

Properties

  • The snap guide visualization mode.

    Declaration

    Swift

    open var guideMode: SnapGuide
  • The color of the snap guide. This property supports being set via a UIAppearance proxy.

    Declaration

    Swift

    open dynamic var guideColor: UIColor
  • The line width of the snap guide. This property supports being set via a UIAppearance proxy.

    Declaration

    Swift

    open dynamic var lineWidth: CGFloat
  • The line dash pattern of the snap guide. This property supports being set via a UIAppearance proxy.

    Declaration

    Swift

    open dynamic 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)?