ADPhotoKit Documentation

Class ADSticker​Interact​View

public class ADStickerInteractView: UIView, ADToolInteractable  

Shared view that you can add sticker to.

%135 ADStickerInteractView ADStickerInteractView ADToolInteractable ADToolInteractable ADStickerInteractView->ADToolInteractable UIView UIView ADStickerInteractView->UIView

Conforms To

ADToolInteractable

Use to control tool's interaction view.

UIView

Properties

zIndex

public var zIndex: Int  

strategy

public var strategy: ADInteractStrategy   

interact​Clip​Bounds

public var interactClipBounds: Bool  

cliping​Screen​Info

public var clipingScreenInfo: ADClipingInfo? = nil  

share

public static var share  

Get shared sticker interact view.

Methods

should​Interact(_:​point:​)

public func shouldInteract(_ gesture: UIGestureRecognizer, point: CGPoint) -> Bool  

interact(with:​scale:​state:​)

public func interact(with type: ADInteractType, scale: CGFloat, state: UIGestureRecognizer.State) -> TimeInterval?  

will​Begin​Render​Image()

public func willBeginRenderImage()  

did​End​Render​Image()

public func didEndRenderImage()  

add​Content(_:​)

public func addContent(_ view: ADStickerContentView)  

Add sticker content to shared view.

Parameters

view ADSticker​Content​View

Sticker content.

append​Content(_:​)

public func appendContent(_ view: ADStickerContentView)  

Add sticker content to shared view.

Parameters

view ADSticker​Content​View

Sticker content

clear()

public func clear()  

Clear all content in shared view.